File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1616namespace clang ::tidy::portability {
1717
1818class PragmaOnceCallbacks : public PPCallbacks {
19- public:
19+ public:
2020 PragmaOnceCallbacks (AvoidPragmaOnceCheck *Check, const SourceManager &SM)
2121 : Check(Check), SM(SM) {}
2222 void PragmaDirective (SourceLocation Loc,
@@ -35,7 +35,7 @@ class PragmaOnceCallbacks : public PPCallbacks {
3535 }
3636 }
3737
38- private:
38+ private:
3939 AvoidPragmaOnceCheck *Check;
4040 const SourceManager &SM;
4141};
@@ -46,4 +46,4 @@ void AvoidPragmaOnceCheck::registerPPCallbacks(const SourceManager &SM,
4646 PP->addPPCallbacks (std::make_unique<PragmaOnceCallbacks>(this , SM));
4747}
4848
49- } // namespace clang::tidy::portability
49+ } // namespace clang::tidy::portability
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ namespace clang::tidy::portability {
1818// / For the user-facing documentation see:
1919// / http://clang.llvm.org/extra/clang-tidy/checks/portability/avoid-pragma-once.html
2020class AvoidPragmaOnceCheck : public ClangTidyCheck {
21- public:
21+ public:
2222 AvoidPragmaOnceCheck (StringRef Name, ClangTidyContext *Context)
2323 : ClangTidyCheck(Name, Context) {}
2424 bool isLanguageVersionSupported (const LangOptions &LangOpts) const override {
@@ -29,6 +29,6 @@ class AvoidPragmaOnceCheck : public ClangTidyCheck {
2929 Preprocessor *ModuleExpanderPP) override ;
3030};
3131
32- } // namespace clang::tidy::portability
32+ } // namespace clang::tidy::portability
3333
34- #endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_PORTABILITY_AVOIDPRAGMAONCECHECK_H
34+ #endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_PORTABILITY_AVOIDPRAGMAONCECHECK_H
You can’t perform that action at this time.
0 commit comments