I think there is a better method to call, otherwise looks good.
================ Comment at: clang-tidy/ClangTidyDiagnosticConsumer.h:121-122 @@ +120,4 @@ + // from non-user code. + if (Diags->getSourceManager().getFileCharacteristic(Info.getLocation()) != + SrcMgr::C_User) + return; ---------------- I think you could/should use: Diags->getSourceManager().isInSystemHeader(Info.getLocation()) http://llvm-reviews.chandlerc.com/D2519 BRANCH svn ARCANIST PROJECT clang-tools-extra _______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
