Home
last modified time | relevance | path

Searched refs:EndIfStr (Results 1 – 1 of 1) sorted by relevance

/llvm-project-15.0.7/clang-tools-extra/clang-tidy/utils/
H A DHeaderGuard.cpp139 StringRef EndIfStr(EndIfData, EndIfLen); in wouldFixEndifComment() local
140 EndIfStr = EndIfStr.substr(EndIfStr.find_first_not_of("#endif \t")); in wouldFixEndifComment()
143 size_t FindEscapedNewline = EndIfStr.find_last_not_of(' '); in wouldFixEndifComment()
145 EndIfStr[FindEscapedNewline] == '\\') in wouldFixEndifComment()
149 EndIfStr.consume_front("//") || in wouldFixEndifComment()
150 (EndIfStr.consume_front("/*") && EndIfStr.consume_back("*/")); in wouldFixEndifComment()
154 return EndIfStr.trim() != HeaderGuard; in wouldFixEndifComment()