Macro expansion error in C/C++ for _Pragma #731
Labels
Kind: Bug ⚠️
Kind: Important 🥇
Level: Intermediate (3)
Plugin: C++
Issues related to the parsing and presentation of C++ projects.
Milestone
PPMacroCallback::MacroExpands
deliberately omits expanding#pragma
statements and other preprocessor directives:CodeCompass/plugins/cpp/parser/src/ppmacrocallback.cpp
Lines 73 to 77 in d2b0ee6
However, pragmas can also be defined with the
_Pragma
operator, see reference:https://gcc.gnu.org/onlinedocs/cpp/Pragmas.html
Consider the following MWE, which will produce multiple errors, as the pragmas will be seemingly re-preprocessed.
The text was updated successfully, but these errors were encountered: