diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2018-01-28 10:02:20 +0100 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2018-01-28 10:56:57 +0100 |
| commit | 9c309400fca07f15d8f4b116c12fa58f97d8043a (patch) | |
| tree | d7537af3e0da66e7e9335f563b8dcdb69c601388 /tests/Klocation_included | |
| parent | 13c563637ebb87e2442adf6b12ab4931adb18268 (diff) | |
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.
Diffstat (limited to 'tests/Klocation_included')
| -rw-r--r-- | tests/Klocation_included | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/Klocation_included b/tests/Klocation_included index fb1afaa..6e19f76 100644 --- a/tests/Klocation_included +++ b/tests/Klocation_included @@ -3,13 +3,16 @@ config MULTI_DEF choice CHOICE + bool "choice" endchoice config MENU_HOOK + bool menu "menu" endmenu config COMMENT_HOOK + bool comment "comment" |
