1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Bug 370146 - No references in class defined in file containing inactive

code that references a macro
This commit is contained in:
sprigogin 2012-05-19 20:56:22 -07:00
parent 6bf3a22858
commit 65a29165c2

View file

@ -347,6 +347,11 @@ final class ScannerContext {
}
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();
if (fInternalModifications != null && !fInternalModifications.containsKey(macroName)) {
final char[] expansion = macro.getExpansion();