1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-07 17:56:01 +02:00

Generate inactive macros only when requested, bug 264666

This commit is contained in:
Markus Schorn 2009-02-18 16:56:12 +00:00
parent fef3325b6f
commit a60fe2221f

View file

@ -446,8 +446,8 @@ public class LocationMapTests extends BaseTestCase {
IMacroBinding macro1= new TestMacro("n1", "exp1", null); IMacroBinding macro1= new TestMacro("n1", "exp1", null);
init(DIGITS); init(DIGITS);
fLocationMap.encounterPoundUndef(null, 0, 0, 0, 0, "n1".toCharArray()); fLocationMap.encounterPoundUndef(null, 0, 0, 0, 0, "n1".toCharArray(), true);
fLocationMap.encounterPoundUndef(macro1, 0, 3, 7, 16, "n2".toCharArray()); fLocationMap.encounterPoundUndef(macro1, 0, 3, 7, 16, "n2".toCharArray(), true);
IASTPreprocessorStatement[] prep= fLocationMap.getAllPreprocessorStatements(); IASTPreprocessorStatement[] prep= fLocationMap.getAllPreprocessorStatements();
assertEquals(2, prep.length); assertEquals(2, prep.length);
checkMacroUndef(prep[0], null, "", "n1", "", FN, 0, 0, 1, 0, 0); checkMacroUndef(prep[0], null, "", "n1", "", FN, 0, 0, 1, 0, 0);