mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-27 02:45:32 +02:00
Bug 370146 - No references in class defined in file containing inactive
code that references a macro
This commit is contained in:
parent
6bf3a22858
commit
65a29165c2
1 changed files with 5 additions and 0 deletions
|
@ -347,6 +347,11 @@ final class ScannerContext {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void significantMacro(IMacroBinding macro) {
|
public void significantMacro(IMacroBinding macro) {
|
||||||
|
if (fCurrentState == CodeState.eParseInactive) {
|
||||||
|
// Macros in inactive code should not be considered significant to match behavior of indexer,
|
||||||
|
// which doesn't parse inactive code (see http://bugs.eclipse.org/bugs/show_bug.cgi?id=370146).
|
||||||
|
return;
|
||||||
|
}
|
||||||
final char[] macroName= macro.getNameCharArray();
|
final char[] macroName= macro.getNameCharArray();
|
||||||
if (fInternalModifications != null && !fInternalModifications.containsKey(macroName)) {
|
if (fInternalModifications != null && !fInternalModifications.containsKey(macroName)) {
|
||||||
final char[] expansion = macro.getExpansion();
|
final char[] expansion = macro.getExpansion();
|
||||||
|
|
Loading…
Add table
Reference in a new issue