Skip to content

Commit

Permalink
[clang-tidy][NFC] Clarify documentation for misc-definitions-in-headers
Browse files Browse the repository at this point in the history
Add information about what fixes are provided by
the check, and how to enable them.

Issue: #55093
  • Loading branch information
PiotrZSL committed Oct 16, 2023
1 parent 511236e commit c5b617c
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@ from multiple translation units.
template <class T>
constexpr T pi = T(3.1415926L);

When :program:`clang-tidy` is invoked with the `--fix-notes` option, this check
provides fixes that automatically add the ``inline`` keyword to discovered
functions. Please note that the addition of the ``inline`` keyword to variables
is not currently supported by this check.

Options
-------

Expand Down

0 comments on commit c5b617c

Please sign in to comment.