详细链接在https://clang.llvm.org/extra/clang-tidy/checks/readability/duplicate-include.html。 Looks for duplicate includes and removes them. The check maintains a list of included files and looks for duplicates. If a macro is defined or undefined then the list of included files is cleared. 查...
Add a (for now) very simple configuration for clang-tidy that silences warnings about sizeof() expressions from g_clear_{object,pointer} macros. The clang-tidy configuration file is also used by clangd, so this also avoids these false positive diagnostics when using it in an editor with LSP...
typeParameter", "concept", "type", "macro", "modifier", "operator", "bracket", "label", "comment" } }, range = false }, signatureHelpProvider = { triggerCharacters = { "(", ")", "{", "}", "<", ">", "," } }, standardTypeHierarchyProvider = true, textDocumentSync = { ...
logrotate 程序是一个日志文件管理工具。用来把旧的日志文件删除,并创建新的日志文件,称为日志转储或...
// header.hUGLY_MACRO(SomeName); // clang-tidy</em 浏览3提问于2020-04-04得票数 5 1回答 clang-tidy:什么可能导致NOLINT注释不被尊重? 、 我已经为开源的Traffic Server项目创建了一个PR。他们运行得井井有条,是其CI的一部分。我的更改将一个新文件暴露给clang-tidy,它现在被标记为移动后使用警告。#...
bugprone-multiple-statement-macro, bugprone-parent-virtual-call, bugprone-posix-return, bugprone-reserved-identifier, bugprone-signed-char-misuse, bugprone-sizeof-container, bugprone-sizeof-expression, bugprone-string-constructor, bugprone-string-integer-assignment, bugprone-string-literal-with-...
-bugprone-macro-parentheses, -bugprone-lambda-function-name, -bugprone-reserved-identifier, cppcoreguidelines-*, -cppcoreguidelines-avoid-magic-numbers, -cppcoreguidelines-avoid-non-const-global-variables, -cppcoreguidelines-interfaces-global-init, ...
Configure options used by the Clang-Tidy checks Force CLion to use existing.clang-tidyconfigs instead of the settings provided in the IDE settings dialog For example, if you takemodernize-use-nullptrcheck and decide to provide the list of macro names that will be transformed into C++11nullptr...
/data/data/com.termux/files/home/SubStack/cxx/ClassCns.hxx:66:52: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses] 66 | virtual const std::vector<int> processToVectorInt(INPUT_TYPEDEF &input) const {assert((INPUT_MODE) == inputMode && cnsModeVectorInt...
Support replacements in macro arguments in the misc-inefficient-algorithm check.http://reviews.llvm.org/D11677Files: clang-tidy/misc/InefficientAlgorithmCheck.cpp test/clang-tidy/misc-inefficient-algorithm.cpp Index: test/clang-tidy/misc-inefficient-algorithm.cpp ...