diff options
| author | Alexander Kornienko <alexfh@google.com> | 2016-05-19 09:31:30 +0000 |
|---|---|---|
| committer | Alexander Kornienko <alexfh@google.com> | 2016-05-19 09:31:30 +0000 |
| commit | a20bab46cda9b2587270e63c96732bd1afa37fbf (patch) | |
| tree | 35efbbccd71f986db4f5076365ad020d06feff55 | |
| parent | 77c8b2ed9f8a57cece3172b1b8f0cd93b37e8357 (diff) | |
| download | llvm-a20bab46cda9b2587270e63c96732bd1afa37fbf.zip llvm-a20bab46cda9b2587270e63c96732bd1afa37fbf.tar.gz llvm-a20bab46cda9b2587270e63c96732bd1afa37fbf.tar.bz2 | |
[clang-tidy] Fix/add style guide links.
Thanks to Tim Halloran for the initial patch (http://reviews.llvm.org/D15089)!
llvm-svn: 270033
4 files changed, 15 insertions, 2 deletions
diff --git a/clang-tools-extra/clang-tidy/google/GlobalNamesInHeadersCheck.h b/clang-tools-extra/clang-tidy/google/GlobalNamesInHeadersCheck.h index 1320b49..79a6e28 100644 --- a/clang-tools-extra/clang-tidy/google/GlobalNamesInHeadersCheck.h +++ b/clang-tools-extra/clang-tidy/google/GlobalNamesInHeadersCheck.h @@ -23,7 +23,7 @@ namespace readability { /// /// The check supports these options: /// - `HeaderFileExtensions`: a comma-separated list of filename extensions -/// of header files (The filename extensions should not contain "." prefix). +/// of header files (the filename extensions should not contain "." prefix). /// "h" by default. /// For extension-less header files, using an empty string or leaving an /// empty string between "," if there are other filename extensions. diff --git a/clang-tools-extra/docs/clang-tidy/checks/google-global-names-in-headers.rst b/clang-tools-extra/docs/clang-tidy/checks/google-global-names-in-headers.rst index 33a7512..02aa52c 100644 --- a/clang-tools-extra/docs/clang-tidy/checks/google-global-names-in-headers.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/google-global-names-in-headers.rst @@ -5,3 +5,13 @@ google-global-names-in-headers Flag global namespace pollution in header files. Right now it only triggers on ``using`` declarations and directives. + +The check supports these options: + - `HeaderFileExtensions`: a comma-separated list of filename extensions + of header files (the filename extensions should not contain "." prefix). + "h" by default. + For extension-less header files, using an empty string or leaving an + empty string between "," if there are other filename extensions. + +The relevant style guide section is +https://google.github.io/styleguide/cppguide.html#Namespaces. diff --git a/clang-tools-extra/docs/clang-tidy/checks/google-readability-todo.rst b/clang-tools-extra/docs/clang-tidy/checks/google-readability-todo.rst index 86c04a8..159d2b4 100644 --- a/clang-tools-extra/docs/clang-tidy/checks/google-readability-todo.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/google-readability-todo.rst @@ -5,4 +5,7 @@ google-readability-todo Finds TODO comments without a username or bug number. +The relevant style guide section is +https://google.github.io/styleguide/cppguide.html#TODO_Comments. + Corresponding cpplint.py check: `readability/todo` diff --git a/clang-tools-extra/docs/clang-tidy/checks/google-runtime-int.rst b/clang-tools-extra/docs/clang-tidy/checks/google-runtime-int.rst index eace60b9..89072f1 100644 --- a/clang-tools-extra/docs/clang-tidy/checks/google-runtime-int.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/google-runtime-int.rst @@ -7,6 +7,6 @@ Finds uses of ``short``, ``long`` and ``long long`` and suggest replacing them with ``u?intXX(_t)?``. The corresponding style guide rule: -https://google-styleguide.googlecode.com/svn/trunk/cppguide.html#Integer_Types. +https://google.github.io/styleguide/cppguide.html#Integer_Types. Correspondig cpplint.py check: `runtime/int`. |
