Skip to content

Commit 26aaa0d

Browse files
committed
Fix dump of discovered macros
1 parent df4fb1e commit 26aaa0d

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/frontend/cxx/frontend.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,6 @@ auto runOnFile(const CLI& cli, const std::string& fileName) -> bool {
294294
shouldExit = true;
295295
} else {
296296
unit.setSource(std::move(*source), fileName);
297-
298297
if (cli.opt_dM) {
299298
preprocessor->printMacros(output);
300299
shouldExit = true;

src/parser/cxx/translation_unit.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ auto TranslationUnit::continuePreprocessing() -> PreprocessingState {
9393

9494
void TranslationUnit::endPreprocessing() {
9595
preprocessor_->endPreprocessing(tokens_);
96-
preprocessor_->squeeze();
9796
}
9897

9998
auto TranslationUnit::fatalErrors() const -> bool {
@@ -168,7 +167,7 @@ void TranslationUnit::parse(ParserConfiguration config) {
168167
if (ast_) {
169168
cxx_runtime_error("translation unit already parsed");
170169
}
171-
170+
preprocessor_->squeeze();
172171
Parser parse(this);
173172
parse.setConfig(std::move(config));
174173
parse(ast_);

0 commit comments

Comments
 (0)