summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-tidy/misc/MacroParenthesesCheck.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [clang-tidy] rename_check.py {misc,bugprone}-macro-parenthesesAlexander Kornienko2018-03-151-260/+0
| | | | llvm-svn: 327606
* [NFC] Update function call names as changed in MacroInfo that should refer ↵Faisal Vali2017-07-171-1/+1
| | | | | | | | | | to Parameters (as opposed to Arguments). This syncs them up with clang commit r308190 Thanks! llvm-svn: 308191
* [clang-tools-extra] Format sources with clang-format. NFC.Mandeep Singh Grang2016-11-081-5/+6
| | | | | | | | | | | | | | | | Summary: Ran clang-format on all .c/.cpp/.h files in clang-tools-extra. Excluded the test, unittests, clang-reorder-fields, include-fixer, modularize and pptrace directories. Reviewers: klimek, alexfh Subscribers: nemanjai Tags: #clang-tools-extra Differential Revision: https://reviews.llvm.org/D26329 llvm-svn: 286221
* [clang-tidy] remove trailing whitespaces and retabKirill Bobyrev2016-08-011-1/+1
| | | | llvm-svn: 277340
* [clang-tidy] misc-macro-parentheses - avoid adding parentheses in variable ↵Daniel Marjamaki2016-06-081-2/+49
| | | | | | | | | | | | | | declarations Fixes bugzilla issues 26273 and 27399 Reviewers: alexfh Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D20853 llvm-svn: 272128
* Commiting for http://reviews.llvm.org/D20365Mads Ravn2016-05-231-0/+4
| | | | llvm-svn: 270470
* [clang-tidy] Skip misc-macro-parentheses for namespaces (Fix PR27400)Vedant Kumar2016-05-171-0/+4
| | | | | | | | | If a use of a macro argument is preceded by the `namespace` keyword, do not warn that the use should be wrapped in parentheses. Patch by Mads Ravn! llvm-svn: 269786
* [clang-tidy] Cleaning namespaces to be more consistant across checkers.Etienne Bergeron2016-05-021-0/+2
| | | | | | | | | | | | | | Summary: The goal of the patch is to bring checkers in their appropriate namespace. This path doesn't change any behavior. Reviewers: alexfh Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D19811 llvm-svn: 268264
* [clang-tidy] Cleanup some ast-matchers and lift some to utils.Etienne Bergeron2016-04-211-2/+2
| | | | | | | | | | | | | | | | Summary: Little cleanup to lift-out and to remove some frequently used ast-matchers. Some of theses matchers are candidates to be lifted to ASTMatchers.h. Reviewers: alexfh Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D19200 llvm-svn: 267003
* [clang-tidy] misc-macro-parentheses: fix fp when using object member pointersDaniel Marjamaki2015-11-101-1/+2
| | | | | | Fixes http://llvm.org/PR25208. llvm-svn: 252608
* [clang-tidy] Update docs for clang-tidy checks. NFCAlexander Kornienko2015-08-271-3/+3
| | | | | | | | | | | Changes mostly address formatting and unification of the style. Use MarkDown style for inline code snippets and lists. Added some text for a few checks. The idea is to move most of the documentation out to separate rST files and have implementation files refer to the corresponding documentation files. llvm-svn: 246169
* [clang-tidy] minor coding style tweak. make functions static.Daniel Marjamaki2015-07-011-5/+5
| | | | llvm-svn: 241160
* [clang-tidy] Fix false positives in the macro parentheses checkerDaniel Marjamaki2015-06-291-2/+11
| | | | | | | | | | | Summary: There were false positives in C++ code where macro argument was a type. Reviewers: alexfh Differential Revision: http://reviews.llvm.org/D10801 llvm-svn: 240938
* [clang-tidy] Fix false positives in misc-macro-parentheses checkerDaniel Marjamaki2015-06-231-3/+3
| | | | llvm-svn: 240399
* clang-tidy: Add checker that warns about missing parentheses in macrosDaniel Marjamaki2015-06-161-0/+192
* calculations in the replacement list should be inside parentheses * macro arguments should be inside parentheses llvm-svn: 239820
OpenPOWER on IntegriCloud