Please help me to understand how can I comment out a single line from a clang-tidy configuration file.
How can I comment a line in a .clang-tidy config file?
Asked Answered
#
is acceptable
For example:
#-bugprone-macro-parentheses,
see github.com/llvm/llvm-project/issues/64343 –
Pancreatotomy
tl;dr: to comment a single line Prefix it with #
.
The clang-tidy
configuration file is a YAML file. This is documented in the output of clang-tidy --help
as well as in the documentation.
So, syntax rules for YAML apply including syntax rules for comments.
© 2022 - 2025 — McMap. All rights reserved.
#
is only valid at the start of the the line – Leander