From 9c309400fca07f15d8f4b116c12fa58f97d8043a Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Sun, 28 Jan 2018 10:02:20 +0100 Subject: Add some post-parsing warnings These are easiest to check after parsing, since a symbol/choice can be defined in multiple locations: - Warn if a symbol or choice defined without a type. Also warn for choice value symbols defined without a type, even if they automatically get their type from the choice. This feature isn't well-known and probably not used deliberately. - Warn if a choice is defined without a prompt - Warn of a choice default symbol is not contained in the choice Also move _name_and_loc_str() from the symbol class to the global scope and generalize it to be able to handle choices. --- tests/Kdefconfig_existent_but_n | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/Kdefconfig_existent_but_n') diff --git a/tests/Kdefconfig_existent_but_n b/tests/Kdefconfig_existent_but_n index 17b8980..2d55e97 100644 --- a/tests/Kdefconfig_existent_but_n +++ b/tests/Kdefconfig_existent_but_n @@ -2,6 +2,7 @@ # Should produce None due to the "depends on n" config FOO + string option env="BAR" config A -- cgit v1.2.3