Skip to content

Commit

Permalink
[Clang] Fix several -Wdocumentation warnings (NFC)
Browse files Browse the repository at this point in the history
```
clang/include/clang/Lex/Preprocessor.h:2893:14: warning: parameter 'isEnter:' not found in the function declaration [-Wdocumentation]
  /// \param isEnter: true if this PP is entering a region; otherwise, this PP
             ^~~~~~~~

clang/include/clang/Lex/Preprocessor.h:2895:14: warning: parameter 'Loc:' not found in the function declaration [-Wdocumentation]
  /// \param Loc: the location of the entry or exit of a
             ^~~~

clang/include/clang/Lex/Preprocessor.h:2907:14: warning: parameter 'StartLoc:' not found in the function declaration [-Wdocumentation]
  /// \param StartLoc: output argument. It will be set to the start location of
             ^~~~~~~~~
```
  • Loading branch information
egorzhdan committed Oct 26, 2023
1 parent 78941e1 commit f3f0672
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions clang/include/clang/Lex/Preprocessor.h
Original file line number Diff line number Diff line change
Expand Up @@ -2879,9 +2879,9 @@ class Preprocessor {
/// Alter the state of whether this PP currently is in a
/// "-Wunsafe-buffer-usage" opt-out region.
///
/// \param isEnter: true if this PP is entering a region; otherwise, this PP
/// \param isEnter true if this PP is entering a region; otherwise, this PP
/// is exiting a region
/// \param Loc: the location of the entry or exit of a
/// \param Loc the location of the entry or exit of a
/// region
/// \return true iff it is INVALID to enter or exit a region, i.e.,
/// attempt to enter a region before exiting a previous region, or exiting a
Expand All @@ -2893,7 +2893,7 @@ class Preprocessor {
/// opt-out region
bool isPPInSafeBufferOptOutRegion();

/// \param StartLoc: output argument. It will be set to the start location of
/// \param StartLoc output argument. It will be set to the start location of
/// the current "-Wunsafe-buffer-usage" opt-out region iff this function
/// returns true.
/// \return true iff this PP is currently in a "-Wunsafe-buffer-usage"
Expand Down

0 comments on commit f3f0672

Please sign in to comment.