[PATCH] D156056: [clang-tidy] Initialize DiagnosticEngine in ExpandModularHeaders

Carlos Galvez via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Jul 23 08:42:35 PDT 2023


carlosgalvezp added inline comments.


================
Comment at: clang-tools-extra/clang-tidy/ExpandModularHeadersPPCallbacks.cpp:83
   Diags.setSourceManager(&Sources);
+  ProcessWarningOptions(Diags, Compiler.getDiagnosticOpts());
 
----------------
A bit unclear to me why we should add this line here, grepping for this function in the repo I only find hits in the `clang` folder. How come it's not needed in other places?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D156056/new/

https://reviews.llvm.org/D156056



More information about the cfe-commits mailing list