[PATCH] D63288: [clang-tidy] Generalize TransformerClangTidyCheck to take a rule generator.
Yitzhak Mandelbaum via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 25 11:25:43 PDT 2019
ymandel marked 2 inline comments as done.
ymandel added inline comments.
================
Comment at: clang-tools-extra/unittests/clang-tidy/TransformerClangTidyCheckTest.cpp:92
+ const std::string Input = "void log(int);";
+ EXPECT_EQ(Input, test::runCheckOnCode<NeedsC99Check>(Input));
+}
----------------
gribozavr wrote:
> Would adding `-std=c99` to `ExtraArgs`, and setting `Filename` to `input.c` work?
No, nothing seems to work. I can't find a way to ever set bits in LangOptions. I'm rather confused why that's the case...
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D63288/new/
https://reviews.llvm.org/D63288
More information about the cfe-commits
mailing list