summaryrefslogtreecommitdiff
path: root/kconfiglib.py
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2012-12-03 17:54:19 +0100
committerUlf Magnusson <ulfalizer@gmail.com>2012-12-03 18:36:04 +0100
commit25b68ab5a7beb3b49e41588f0451f1099e3e38e4 (patch)
tree675363a81a2996eb057b9c4b9f4d564a4e7035c6 /kconfiglib.py
parentb9409a7ca140f5f677b46293f0c8db52b14280d9 (diff)
Record locations for symbols defined with 'menuconfig'.
We previously only looked for T_CONFIG to determine if a location should be recorded. We need to look for T_MENUCONFIG as well. Also add some sanity checks for get_ref/def_location() to the test suite.
Diffstat (limited to 'kconfiglib.py')
-rw-r--r--kconfiglib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/kconfiglib.py b/kconfiglib.py
index ee81c50..3d81265 100644
--- a/kconfiglib.py
+++ b/kconfiglib.py
@@ -1054,7 +1054,7 @@ class Config():
# time we see it.
sym = self._sym_lookup(name, not for_eval)
- if previous == T_CONFIG:
+ if previous in (T_CONFIG, T_MENUCONFIG):
# If the previous token is T_CONFIG ("config"), we're
# tokenizing the first line of a symbol definition, and
# should remember this as a location where the symbol