[PATCH] D35447: [Bash-autocompletion] Add support for -W<warning> and -Wno<warning>

Raphael Isemann via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Jul 15 12:13:29 PDT 2017


teemperor accepted this revision.
teemperor added a comment.
This revision is now accepted and ready to land.

I have a last request in my inline comment regarding the documentation, otherwise this is good to go. Nice work!



================
Comment at: clang/include/clang/Basic/DiagnosticIDs.h:267
 
+  /// \brief Get the string of all diagnostic flags
+  static std::vector<std::string> getDiagnosticFlags();
----------------
Let's add an example to make it clear that we want to have the command line flags here, something like this:
```
/// \brief Get the list of all diagnostic flags.
/// \returns A list of all diagnostics flags as they would be written in a command line invocation
///          including their `no-` variants. For example: `{"-Wempty-body", "-Wno-empty-body", ...}`
```


https://reviews.llvm.org/D35447





More information about the cfe-commits mailing list