Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Event Timeline
clang-tools-extra/clang-tidy/bugprone/ArgumentCommentCheck.cpp | ||
---|---|---|
67 | "Ignore APIs from the standard library, since their names are not specified by the standard, and standard library implementations in practice have to use reserved names to avoid conflicts with same-named macros." | |
68 | Please use the isInStdNamespace() matcher instead. | |
68 | I think there are redundant parentheses around isFromStdNamespace(). |
clang-tools-extra/clang-tidy/bugprone/ArgumentCommentCheck.cpp | ||
---|---|---|
68 | isInStdNamespace is not a same thing -- it just checks the direct DeclContext is a std namespace, e.g. std::vector::assign, the declcontext of the assign is CXXRecordDecl (vector), isInStdNamespace will return false, but we want true. |
"Ignore APIs from the standard library, since their names are not specified by the standard, and standard library implementations in practice have to use reserved names to avoid conflicts with same-named macros."