[PATCH] D74669: [clang-tidy] New check: misc-no-include-cpp

Nathan James via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 19 15:41:57 PST 2020


njames93 added a comment.

I'd suggest possibly adding 2 Options at Global Level SourceFileExtensions and HeaderFileExtensions, both would take semicolon seperated lists. 
Reason they are Global is there are probably other checks that could use them.
The SourceFileExtensions could be defaulted to `.c;.cc;.cpp;.cxx` and the HeaderFileExtensions `.h;.hh;.hpp;<empty>`.
You need the `<empty>` because how Options get parsed, then it can manually be transformed to `""` when you read it.


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

https://reviews.llvm.org/D74669





More information about the cfe-commits mailing list