Skip to content

Find All References doesn't find references in preprocessor statements (also affects Rename Symbols) #4075

@sean-mcmanus

Description

@sean-mcmanus
#define DEF1 1
#define DEF2 DEF1

#ifdef DEF1

int main(){
    return DEF1;
}
#endif

Bug: Find All References only finds the "return DEF1;" and not the cases in the #define/#ifdef. VS handles that case correctly.

It also affects rename (which uses find all references).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions