mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 22:52:11 +02:00
Generate inactive macros only when requested, bug 264666
This commit is contained in:
parent
fef3325b6f
commit
a60fe2221f
1 changed files with 2 additions and 2 deletions
|
@ -446,8 +446,8 @@ public class LocationMapTests extends BaseTestCase {
|
|||
IMacroBinding macro1= new TestMacro("n1", "exp1", null);
|
||||
|
||||
init(DIGITS);
|
||||
fLocationMap.encounterPoundUndef(null, 0, 0, 0, 0, "n1".toCharArray());
|
||||
fLocationMap.encounterPoundUndef(macro1, 0, 3, 7, 16, "n2".toCharArray());
|
||||
fLocationMap.encounterPoundUndef(null, 0, 0, 0, 0, "n1".toCharArray(), true);
|
||||
fLocationMap.encounterPoundUndef(macro1, 0, 3, 7, 16, "n2".toCharArray(), true);
|
||||
IASTPreprocessorStatement[] prep= fLocationMap.getAllPreprocessorStatements();
|
||||
assertEquals(2, prep.length);
|
||||
checkMacroUndef(prep[0], null, "", "n1", "", FN, 0, 0, 1, 0, 0);
|
||||
|
|
Loading…
Add table
Reference in a new issue