[clang-tools-extra] 3860b2a - [clang-tidy] Update Abseil Duration Conversion check to find more cases.

2020-03-13 Thread Hyrum Wright via cfe-commits
Author: Hyrum Wright Date: 2020-03-13T12:52:37-04:00 New Revision: 3860b2a0bd09291a276b0590939961dffe67fbb6 URL: https://github.com/llvm/llvm-project/commit/3860b2a0bd09291a276b0590939961dffe67fbb6 DIFF: https://github.com/llvm/llvm-project/commit/3860b2a0bd09291a276b0590939961dffe67fbb6.diff

[clang-tools-extra] r356141 - [clang-tidy] Add additional patterns to the abseil-duration-unnecessary-conversion check.

2019-03-14 Thread Hyrum Wright via cfe-commits
Author: hwright Date: Thu Mar 14 06:38:16 2019 New Revision: 356141 URL: http://llvm.org/viewvc/llvm-project?rev=356141&view=rev Log: [clang-tidy] Add additional patterns to the abseil-duration-unnecessary-conversion check. Differential Revision: https://reviews.llvm.org/D59183 Modified: c

[clang-tools-extra] r355835 - [clang-tidy] Add the abseil-time-compare check

2019-03-11 Thread Hyrum Wright via cfe-commits
Author: hwright Date: Mon Mar 11 09:47:45 2019 New Revision: 355835 URL: http://llvm.org/viewvc/llvm-project?rev=355835&view=rev Log: [clang-tidy] Add the abseil-time-compare check This is an analog of the abseil-duration-comparison check, but for the absl::Time domain. It has a similar implement

[clang-tools-extra] r355702 - [clang-tidy] NFC: Negate the name and semantics of the isNotInMacro function.

2019-03-08 Thread Hyrum Wright via cfe-commits
Author: hwright Date: Fri Mar 8 07:37:15 2019 New Revision: 355702 URL: http://llvm.org/viewvc/llvm-project?rev=355702&view=rev Log: [clang-tidy] NFC: Negate the name and semantics of the isNotInMacro function. This function is always used in a context where its result was also negated, which ma

[clang-tools-extra] r355024 - [clang-tidy] Add the abseil-time-subtraction check

2019-02-27 Thread Hyrum Wright via cfe-commits
Author: hwright Date: Wed Feb 27 12:08:50 2019 New Revision: 355024 URL: http://llvm.org/viewvc/llvm-project?rev=355024&view=rev Log: [clang-tidy] Add the abseil-time-subtraction check Differential Revision: https://reviews.llvm.org/D58137 Added: clang-tools-extra/trunk/clang-tidy/abseil/Tim

[clang-tools-extra] r353079 - [clang-tidy] Add the abseil-duration-unnecessary-conversion check

2019-02-04 Thread Hyrum Wright via cfe-commits
Author: hwright Date: Mon Feb 4 11:28:20 2019 New Revision: 353079 URL: http://llvm.org/viewvc/llvm-project?rev=353079&view=rev Log: [clang-tidy] Add the abseil-duration-unnecessary-conversion check Differential Revision: https://reviews.llvm.org/D57353 Added: clang-tools-extra/trunk/clang

[clang-tools-extra] r352964 - [clang-tidy] Rename time lookup functions; NFC

2019-02-02 Thread Hyrum Wright via cfe-commits
Author: hwright Date: Sat Feb 2 11:57:37 2019 New Revision: 352964 URL: http://llvm.org/viewvc/llvm-project?rev=352964&view=rev Log: [clang-tidy] Rename time lookup functions; NFC Modified: clang-tools-extra/trunk/clang-tidy/abseil/DurationAdditionCheck.cpp clang-tools-extra/trunk/clang-

[clang-tools-extra] r352362 - [clang-tidy] Add the abseil-duration-addition check

2019-01-28 Thread Hyrum Wright via cfe-commits
Author: hwright Date: Mon Jan 28 06:03:09 2019 New Revision: 352362 URL: http://llvm.org/viewvc/llvm-project?rev=352362&view=rev Log: [clang-tidy] Add the abseil-duration-addition check Differential Revision: https://reviews.llvm.org/D57185 Added: clang-tools-extra/trunk/clang-tidy/abseil/Du

[clang-tools-extra] r352088 - [clang-tidy] Rename the absl duration helper functions; NFC

2019-01-24 Thread Hyrum Wright via cfe-commits
Author: hwright Date: Thu Jan 24 11:23:50 2019 New Revision: 352088 URL: http://llvm.org/viewvc/llvm-project?rev=352088&view=rev Log: [clang-tidy] Rename the absl duration helper functions; NFC Modified: clang-tools-extra/trunk/clang-tidy/abseil/DurationComparisonCheck.cpp clang-tools-ext

[clang-tools-extra] r351473 - [clang-tidy] Add abseil-duration-conversion-cast check

2019-01-17 Thread Hyrum Wright via cfe-commits
Author: hwright Date: Thu Jan 17 12:37:35 2019 New Revision: 351473 URL: http://llvm.org/viewvc/llvm-project?rev=351473&view=rev Log: [clang-tidy] Add abseil-duration-conversion-cast check Differential Revision: https://reviews.llvm.org/D56532 Added: clang-tools-extra/trunk/clang-tidy/abseil

[clang-tools-extra] r351348 - [clang-tidy] Move the macro helper function to a common location; NFC

2019-01-16 Thread Hyrum Wright via cfe-commits
Author: hwright Date: Wed Jan 16 06:49:32 2019 New Revision: 351348 URL: http://llvm.org/viewvc/llvm-project?rev=351348&view=rev Log: [clang-tidy] Move the macro helper function to a common location; NFC This is useful for multiple checks. Modified: clang-tools-extra/trunk/clang-tidy/abseil/

[clang-tools-extra] r350526 - [clang-tidy] Use the public hasInit matcher, rather than defining our own, NFC

2019-01-07 Thread Hyrum Wright via cfe-commits
Author: hwright Date: Mon Jan 7 06:36:47 2019 New Revision: 350526 URL: http://llvm.org/viewvc/llvm-project?rev=350526&view=rev Log: [clang-tidy] Use the public hasInit matcher, rather than defining our own, NFC Modified: clang-tools-extra/trunk/clang-tidy/abseil/DurationRewriter.cpp Modifi

r350523 - [clang] Add AST matcher for initializer list members

2019-01-07 Thread Hyrum Wright via cfe-commits
Author: hwright Date: Mon Jan 7 06:14:36 2019 New Revision: 350523 URL: http://llvm.org/viewvc/llvm-project?rev=350523&view=rev Log: [clang] Add AST matcher for initializer list members Summary: Much like hasArg for various call expressions, this allows LibTooling users to match against a member

[clang-tools-extra] r350133 - [clang-tidy] Export the abseil duration inverse lookup function, NFC

2018-12-28 Thread Hyrum Wright via cfe-commits
Author: hwright Date: Fri Dec 28 11:04:21 2018 New Revision: 350133 URL: http://llvm.org/viewvc/llvm-project?rev=350133&view=rev Log: [clang-tidy] Export the abseil duration inverse lookup function, NFC This allows other tools to use this function. Modified: clang-tools-extra/trunk/clang-tid

[clang-tools-extra] r349953 - [clang-tidy] Be more liberal about literal zeroes in abseil checks

2018-12-21 Thread Hyrum Wright via cfe-commits
Author: hwright Date: Fri Dec 21 13:07:11 2018 New Revision: 349953 URL: http://llvm.org/viewvc/llvm-project?rev=349953&view=rev Log: [clang-tidy] Be more liberal about literal zeroes in abseil checks Summary: Previously, we'd only match on literal floating or integral zeroes, but I've now also

[clang-tools-extra] r349636 - [clang-tidy] Diagnose abseil-duration-comparison on macro arguments

2018-12-19 Thread Hyrum Wright via cfe-commits
Author: hwright Date: Wed Dec 19 08:03:34 2018 New Revision: 349636 URL: http://llvm.org/viewvc/llvm-project?rev=349636&view=rev Log: [clang-tidy] Diagnose abseil-duration-comparison on macro arguments Summary: This change relaxes the requirements on the utility `rewriteExprFromNumberToDuration`

[clang-tools-extra] r349073 - [clang-tidy] Add the abseil-duration-subtraction check

2018-12-13 Thread Hyrum Wright via cfe-commits
Author: hwright Date: Thu Dec 13 11:23:52 2018 New Revision: 349073 URL: http://llvm.org/viewvc/llvm-project?rev=349073&view=rev Log: [clang-tidy] Add the abseil-duration-subtraction check Summary: This check uses the context of a subtraction expression as well as knowledge about the Abseil Time