|
clang-tools 24.0.0git
|
Finds uses of #pragma comment and for lib or linker comments suggests using the build system for improved portability. More...
#include <AvoidPragmaCommentCheck.h>
Public Member Functions | |
| AvoidPragmaCommentCheck (StringRef Name, ClangTidyContext *Context) | |
| void | registerMatchers (ast_matchers::MatchFinder *Finder) override |
| void | check (const ast_matchers::MatchFinder::MatchResult &Result) override |
| bool | isLanguageVersionSupported (const LangOptions &LangOpts) const override |
Finds uses of #pragma comment and for lib or linker comments suggests using the build system for improved portability.
Only the "lib" pragma comment type is implemented on Linux, the rest are Windows-only and should be caught by "-Wunknown-pragmas" on Linux.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/portability/avoid-pragma-comment.html
Definition at line 24 of file AvoidPragmaCommentCheck.h.
|
inline |
Definition at line 26 of file AvoidPragmaCommentCheck.h.
|
override |
Definition at line 27 of file AvoidPragmaCommentCheck.cpp.
|
inlineoverride |
Definition at line 30 of file AvoidPragmaCommentCheck.h.
|
override |
Definition at line 23 of file AvoidPragmaCommentCheck.cpp.
References clang::tidy::portability::pragmaCommentDecl.