Community
Participate
Working Groups
Build Identifier: M20100909-0800 When calling isActive on an AST node representing a preprocessor statement which is located inside of an inactive code segment, the result is true. Which is, as I see it, wrong. Reproducible: Always Steps to Reproduce: 1. create source file containing following code: #ifdef A //this one is active (which is correct) #ifdef B //this one claims to be active too (which seems wrong to me #endif #endif 2. call translationUnit.getAllPreprocessorStatements()[1].isActive()
It looks like the preprocessor does not mark most of the preprocessing statements as inactive. It does so for includes and macro definitions, though.
Added testcase, fixed in 8.1 > 20110704.
*** Bug 378479 has been marked as a duplicate of this bug. ***