Skip to content

Commit

Permalink
Disable macro expansion in C++ plugin.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcserep committed May 14, 2024
1 parent c14526a commit 41fc47c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions plugins/cpp/parser/src/ppmacrocallback.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ PPMacroCallback::~PPMacroCallback()
});
}

void PPMacroCallback::MacroExpands(
/*void PPMacroCallback::MacroExpands(
const clang::Token& macroNameTok_,
const clang::MacroDefinition& md_,
clang::SourceRange range_,
Expand Down Expand Up @@ -121,9 +121,9 @@ void PPMacroCallback::MacroExpands(
expansion += _pp.getSpelling(tok);
else
{
expansion += "/*< FIXME: ";
expansion += "/ *< FIXME: ";
expansion += tok.getName();
expansion += " token not expanded. >*/";
expansion += " token not expanded. >* /";
}
_pp.Lex(tok);
}
Expand All @@ -146,7 +146,7 @@ void PPMacroCallback::MacroExpands(
_macrosExpansion.push_back(mExp);
}
}
}*/

void PPMacroCallback::MacroDefined(
const clang::Token& macroNameTok_,
Expand Down
4 changes: 2 additions & 2 deletions plugins/cpp/parser/src/ppmacrocallback.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ class PPMacroCallback : public clang::PPCallbacks

~PPMacroCallback();

virtual void MacroExpands(
/*virtual void MacroExpands(
const clang::Token& macroNameTok_,
const clang::MacroDefinition& md_,
clang::SourceRange range_,
const clang::MacroArgs* args_) override;
const clang::MacroArgs* args_) override;*/

virtual void MacroDefined(
const clang::Token& macroNameTok_,
Expand Down

0 comments on commit 41fc47c

Please sign in to comment.