clang-tools 22.0.0git
|
Report use of std::vector<const T> (and similar containers of const / elements). More...
#include <StdAllocatorConstCheck.h>
Public Member Functions | |
StdAllocatorConstCheck (StringRef Name, ClangTidyContext *Context) | |
bool | isLanguageVersionSupported (const LangOptions &LangOpts) const override |
void | registerMatchers (ast_matchers::MatchFinder *Finder) override |
void | check (const ast_matchers::MatchFinder::MatchResult &Result) override |
Report use of std::vector<const T> (and similar containers of const / elements).
These are not allowed in standard C++ due to undefined / std::allocator<const T>. They do not compile with libstdc++ or MSVC.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/portability/std-allocator-const.html
Definition at line 22 of file StdAllocatorConstCheck.h.
|
inline |
Definition at line 24 of file StdAllocatorConstCheck.h.
|
override |
Definition at line 55 of file StdAllocatorConstCheck.cpp.
|
inlineoverride |
Definition at line 26 of file StdAllocatorConstCheck.h.
|
override |
Definition at line 16 of file StdAllocatorConstCheck.cpp.