[clang] e80748f - [clang-diff] Fix assertion error when dealing with wide strings

2022-06-07 Thread Johannes Altmanninger via cfe-commits
Author: Kaining Zhong Date: 2022-06-07T20:24:34+02:00 New Revision: e80748ff8840a10bd7c7336eb5e98664480ba1ba URL: https://github.com/llvm/llvm-project/commit/e80748ff8840a10bd7c7336eb5e98664480ba1ba DIFF: https://github.com/llvm/llvm-project/commit/e80748ff8840a10bd7c7336eb5e98664480ba1ba.diff

[clang] 1ac700c - [CodeGen] Fix clang crash on aggregate initialization of array of labels

2019-11-27 Thread Johannes Altmanninger via cfe-commits
Author: Johannes Altmanninger Date: 2019-11-28T00:59:25+01:00 New Revision: 1ac700cdef787383ad49a0e37d9894491ef19480 URL: https://github.com/llvm/llvm-project/commit/1ac700cdef787383ad49a0e37d9894491ef19480 DIFF: https://github.com/llvm/llvm-project/commit/1ac700cdef787383ad49a0e37d9894491ef194

r317434 - [clang-diff] NFC: format

2017-11-05 Thread Johannes Altmanninger via cfe-commits
Author: krobelus Date: Sun Nov 5 03:53:18 2017 New Revision: 317434 URL: http://llvm.org/viewvc/llvm-project?rev=317434&view=rev Log: [clang-diff] NFC: format Modified: cfe/trunk/tools/clang-diff/ClangDiff.cpp Modified: cfe/trunk/tools/clang-diff/ClangDiff.cpp URL: http://llvm.org/viewvc/l

r312911 - [AST] Make RecursiveASTVisitor visit TemplateDecls in source order

2017-09-11 Thread Johannes Altmanninger via cfe-commits
Author: krobelus Date: Mon Sep 11 06:12:30 2017 New Revision: 312911 URL: http://llvm.org/viewvc/llvm-project?rev=312911&view=rev Log: [AST] Make RecursiveASTVisitor visit TemplateDecls in source order Summary: This causes template arguments to be traversed before the templated declaration, which

Re: r312633 - [AST] Traverse CXXOperatorCallExpr in LexicallyOrderedRecursiveASTVisitor

2017-09-09 Thread Johannes Altmanninger via cfe-commits
s some code duplication, but let's see, if we merge all the changes into RecursiveASTVisitor, then the tests will naturally follow. https://reviews.llvm.org/D37662 https://reviews.llvm.org/D37663 > > On 6 September 2017 at 06:12, Johannes Altmanninger via cfe-commits < > cfe-commit

r312634 - [AST] Add TableGen for StmtDataCollectors

2017-09-06 Thread Johannes Altmanninger via cfe-commits
Author: krobelus Date: Wed Sep 6 06:20:51 2017 New Revision: 312634 URL: http://llvm.org/viewvc/llvm-project?rev=312634&view=rev Log: [AST] Add TableGen for StmtDataCollectors Summary: This adds an option "-gen-clang-data-collectors" to the Clang TableGen that is used to generate StmtDataCollect

r312633 - [AST] Traverse CXXOperatorCallExpr in LexicallyOrderedRecursiveASTVisitor

2017-09-06 Thread Johannes Altmanninger via cfe-commits
Author: krobelus Date: Wed Sep 6 06:12:11 2017 New Revision: 312633 URL: http://llvm.org/viewvc/llvm-project?rev=312633&view=rev Log: [AST] Traverse CXXOperatorCallExpr in LexicallyOrderedRecursiveASTVisitor Summary: This affects overloaded operators, which are represented by a CXXOperatorCallEx

r312631 - [AST] Traverse templates in LexicallyOrderedRecursiveASTVisitor

2017-09-06 Thread Johannes Altmanninger via cfe-commits
Author: krobelus Date: Wed Sep 6 06:11:13 2017 New Revision: 312631 URL: http://llvm.org/viewvc/llvm-project?rev=312631&view=rev Log: [AST] Traverse templates in LexicallyOrderedRecursiveASTVisitor Summary: We need to specialize this because RecursiveASTVisitor visits template template parameter

r311865 - [clang-diff] Treat CXXCtorInitializer as a node

2017-08-27 Thread Johannes Altmanninger via cfe-commits
Author: krobelus Date: Sun Aug 27 15:52:20 2017 New Revision: 311865 URL: http://llvm.org/viewvc/llvm-project?rev=311865&view=rev Log: [clang-diff] Treat CXXCtorInitializer as a node Reviewers: arphaman Subscribers: cfe-commits, klimek Differential Revision: https://reviews.llvm.org/D37002 Mod

r311770 - [clang-diff] Remove NodeCountVisitor, NFC

2017-08-25 Thread Johannes Altmanninger via cfe-commits
Author: krobelus Date: Fri Aug 25 02:49:49 2017 New Revision: 311770 URL: http://llvm.org/viewvc/llvm-project?rev=311770&view=rev Log: [clang-diff] Remove NodeCountVisitor, NFC Subscribers: klimek, cfe-commits Differential Revision: https://reviews.llvm.org/D37000 Modified: cfe/trunk/lib/To

r311575 - [clang-diff] Properly clear the selection in HTML diff

2017-08-23 Thread Johannes Altmanninger via cfe-commits
Author: krobelus Date: Wed Aug 23 09:52:15 2017 New Revision: 311575 URL: http://llvm.org/viewvc/llvm-project?rev=311575&view=rev Log: [clang-diff] Properly clear the selection in HTML diff Reviewers: arphaman Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D37072 Modi

r311571 - [clang-diff] Reformat test, NFC

2017-08-23 Thread Johannes Altmanninger via cfe-commits
Author: krobelus Date: Wed Aug 23 09:32:35 2017 New Revision: 311571 URL: http://llvm.org/viewvc/llvm-project?rev=311571&view=rev Log: [clang-diff] Reformat test, NFC Modified: cfe/trunk/test/Tooling/clang-diff-html.test Modified: cfe/trunk/test/Tooling/clang-diff-html.test URL: http://llvm

r311570 - [clang-diff] HTML diff navigation

2017-08-23 Thread Johannes Altmanninger via cfe-commits
Author: krobelus Date: Wed Aug 23 09:32:13 2017 New Revision: 311570 URL: http://llvm.org/viewvc/llvm-project?rev=311570&view=rev Log: [clang-diff] HTML diff navigation Summary: This adds shortcuts j and k to jump between changes. It is especially useful in diffs with few changes. Reviewers: arp

r311569 - [analyzer] Make StmtDataCollector customizable

2017-08-23 Thread Johannes Altmanninger via cfe-commits
Author: krobelus Date: Wed Aug 23 09:28:26 2017 New Revision: 311569 URL: http://llvm.org/viewvc/llvm-project?rev=311569&view=rev Log: [analyzer] Make StmtDataCollector customizable Summary: This moves the data collection macro calls for Stmt nodes to lib/AST/StmtDataCollectors.inc Users can sub

r311544 - Fix typos, remove unused private members of CommonOptionsParser, NFC

2017-08-23 Thread Johannes Altmanninger via cfe-commits
Author: krobelus Date: Wed Aug 23 03:43:26 2017 New Revision: 311544 URL: http://llvm.org/viewvc/llvm-project?rev=311544&view=rev Log: Fix typos, remove unused private members of CommonOptionsParser, NFC Modified: cfe/trunk/include/clang/AST/RecursiveASTVisitor.h cfe/trunk/include/clang/A

r311434 - [clang-diff] Fix getRelativeName

2017-08-22 Thread Johannes Altmanninger via cfe-commits
Author: krobelus Date: Tue Aug 22 01:59:13 2017 New Revision: 311434 URL: http://llvm.org/viewvc/llvm-project?rev=311434&view=rev Log: [clang-diff] Fix getRelativeName Handle the case when DeclContext is null. Modified: cfe/trunk/lib/Tooling/ASTDiff/ASTDiff.cpp Modified: cfe/trunk/lib/Tooli

r311433 - [clang-diff] Use the relative name for NamedDecl

2017-08-22 Thread Johannes Altmanninger via cfe-commits
Author: krobelus Date: Tue Aug 22 01:56:26 2017 New Revision: 311433 URL: http://llvm.org/viewvc/llvm-project?rev=311433&view=rev Log: [clang-diff] Use the relative name for NamedDecl Summary: If a node referring to a name is within a class or namespace, do not use the full qualified name, but st

r311301 - Allow thiscall attribute in test/Tooling/clang-diff-ast.cpp

2017-08-20 Thread Johannes Altmanninger via cfe-commits
Author: krobelus Date: Sun Aug 20 13:13:33 2017 New Revision: 311301 URL: http://llvm.org/viewvc/llvm-project?rev=311301&view=rev Log: Allow thiscall attribute in test/Tooling/clang-diff-ast.cpp Modified: cfe/trunk/test/Tooling/clang-diff-ast.cpp Modified: cfe/trunk/test/Tooling/clang-diff-a

r311170 - [CommonOptionsParser] Expose ArgumentsAdjustingCompilationDatabase

2017-08-20 Thread Johannes Altmanninger via cfe-commits
Author: krobelus Date: Fri Aug 18 09:21:08 2017 New Revision: 311170 URL: http://llvm.org/viewvc/llvm-project?rev=311170&view=rev Log: [CommonOptionsParser] Expose ArgumentsAdjustingCompilationDatabase This is useful for tools such as clang-diff which do not use CommonOptionsParser due to the nee

r311292 - [clang-diff] Improve and test getNodeValue

2017-08-20 Thread Johannes Altmanninger via cfe-commits
Author: krobelus Date: Sun Aug 20 09:18:43 2017 New Revision: 311292 URL: http://llvm.org/viewvc/llvm-project?rev=311292&view=rev Log: [clang-diff] Improve and test getNodeValue Summary: Use qualified names if available. Reviewers: arphaman Subscribers: klimek Differential Revision: https://re

r311284 - [clang-diff] Fix similarity computation

2017-08-20 Thread Johannes Altmanninger via cfe-commits
Author: krobelus Date: Sun Aug 20 05:09:07 2017 New Revision: 311284 URL: http://llvm.org/viewvc/llvm-project?rev=311284&view=rev Log: [clang-diff] Fix similarity computation Summary: Add separate tests for the top-down and the bottom-up phase, as well as one for the optimal matching. Reviewers:

r311280 - [clang-diff] Filter AST nodes

2017-08-20 Thread Johannes Altmanninger via cfe-commits
Author: krobelus Date: Sun Aug 20 03:22:32 2017 New Revision: 311280 URL: http://llvm.org/viewvc/llvm-project?rev=311280&view=rev Log: [clang-diff] Filter AST nodes Summary: Ignore macros and implicit AST nodes, as well as anything outside of the main source file. Reviewers: arphaman Subscriber

r311251 - [clang-diff] Simplify mapping

2017-08-19 Thread Johannes Altmanninger via cfe-commits
Author: krobelus Date: Sat Aug 19 10:53:01 2017 New Revision: 311251 URL: http://llvm.org/viewvc/llvm-project?rev=311251&view=rev Log: [clang-diff] Simplify mapping Summary: Until we find a decent heuristic on how to choose between multiple identical trees, there is no point in supporting multipl

r311250 - Add clang-diff to tool_patterns in test/lit.cfg

2017-08-19 Thread Johannes Altmanninger via cfe-commits
Author: krobelus Date: Sat Aug 19 10:52:29 2017 New Revision: 311250 URL: http://llvm.org/viewvc/llvm-project?rev=311250&view=rev Log: Add clang-diff to tool_patterns in test/lit.cfg Modified: cfe/trunk/test/lit.cfg Modified: cfe/trunk/test/lit.cfg URL: http://llvm.org/viewvc/llvm-project/c

r311249 - [clang-diff] Fix compiler warning

2017-08-19 Thread Johannes Altmanninger via cfe-commits
Author: krobelus Date: Sat Aug 19 10:12:25 2017 New Revision: 311249 URL: http://llvm.org/viewvc/llvm-project?rev=311249&view=rev Log: [clang-diff] Fix compiler warning Modified: cfe/trunk/tools/clang-diff/ClangDiff.cpp Modified: cfe/trunk/tools/clang-diff/ClangDiff.cpp URL: http://llvm.org

r311241 - [clang-diff] Add HTML side-by-side diff output

2017-08-19 Thread Johannes Altmanninger via cfe-commits
Author: krobelus Date: Sat Aug 19 08:40:45 2017 New Revision: 311241 URL: http://llvm.org/viewvc/llvm-project?rev=311241&view=rev Log: [clang-diff] Add HTML side-by-side diff output Reviewers: arphaman Subscribers: mgorny Differential Revision: https://reviews.llvm.org/D36182 Added: cfe/tr

r311240 - [clang-diff] Fix warning about useless comparison

2017-08-19 Thread Johannes Altmanninger via cfe-commits
Author: krobelus Date: Sat Aug 19 06:29:44 2017 New Revision: 311240 URL: http://llvm.org/viewvc/llvm-project?rev=311240&view=rev Log: [clang-diff] Fix warning about useless comparison Modified: cfe/trunk/tools/clang-diff/ClangDiff.cpp Modified: cfe/trunk/tools/clang-diff/ClangDiff.cpp URL:

r311237 - [clang-diff] Make printing of matches optional

2017-08-19 Thread Johannes Altmanninger via cfe-commits
Author: krobelus Date: Sat Aug 19 05:04:04 2017 New Revision: 311237 URL: http://llvm.org/viewvc/llvm-project?rev=311237&view=rev Log: [clang-diff] Make printing of matches optional Reviewers: arphaman Subscribers: klimek Differential Revision: https://reviews.llvm.org/D36181 Modified: cfe

r311233 - [clang-diff] Fix test

2017-08-19 Thread Johannes Altmanninger via cfe-commits
Author: krobelus Date: Sat Aug 19 03:05:24 2017 New Revision: 311233 URL: http://llvm.org/viewvc/llvm-project?rev=311233&view=rev Log: [clang-diff] Fix test Modified: cfe/trunk/test/Tooling/clang-diff-ast.cpp Modified: cfe/trunk/test/Tooling/clang-diff-ast.cpp URL: http://llvm.org/viewvc/ll

r311232 - [clang-diff] Add option to dump the AST, one node per line

2017-08-19 Thread Johannes Altmanninger via cfe-commits
Author: krobelus Date: Sat Aug 19 02:36:14 2017 New Revision: 311232 URL: http://llvm.org/viewvc/llvm-project?rev=311232&view=rev Log: [clang-diff] Add option to dump the AST, one node per line Summary: This is done with -ast-dump; the JSON variant has been renamed to -ast-dump-json. Reviewers:

r311222 - Revert "Revert "[clang-diff] Move printing of matches and changes to clang-diff""

2017-08-18 Thread Johannes Altmanninger via cfe-commits
Author: krobelus Date: Fri Aug 18 19:56:35 2017 New Revision: 311222 URL: http://llvm.org/viewvc/llvm-project?rev=311222&view=rev Log: Revert "Revert "[clang-diff] Move printing of matches and changes to clang-diff"" Fix build by renaming ChangeKind -> Change This reverts commit 0c78c5729f29315

r311220 - [clang-diff] Fix test for python 3

2017-08-18 Thread Johannes Altmanninger via cfe-commits
Author: krobelus Date: Fri Aug 18 18:34:24 2017 New Revision: 311220 URL: http://llvm.org/viewvc/llvm-project?rev=311220&view=rev Log: [clang-diff] Fix test for python 3 Modified: cfe/trunk/test/Tooling/clang-diff-json.cpp Modified: cfe/trunk/test/Tooling/clang-diff-json.cpp URL: http://llv

r311216 - Revert "Revert "[clang-diff] Move the JSON export function to clang-diff""

2017-08-18 Thread Johannes Altmanninger via cfe-commits
Author: krobelus Date: Fri Aug 18 17:57:38 2017 New Revision: 311216 URL: http://llvm.org/viewvc/llvm-project?rev=311216&view=rev Log: Revert "Revert "[clang-diff] Move the JSON export function to clang-diff"" This reverts commit eac4c13ac9ea8f12bc049e040c7b9c8a517f54e7, the original commit *shou

r311200 - [clang-diff] Move printing of matches and changes to clang-diff

2017-08-18 Thread Johannes Altmanninger via cfe-commits
Author: krobelus Date: Fri Aug 18 14:26:34 2017 New Revision: 311200 URL: http://llvm.org/viewvc/llvm-project?rev=311200&view=rev Log: [clang-diff] Move printing of matches and changes to clang-diff Summary: This also changes the output order of the changes. Now the matches are printed in pre-ord

r311199 - [clang-diff] Move the JSON export function to clang-diff

2017-08-18 Thread Johannes Altmanninger via cfe-commits
Author: krobelus Date: Fri Aug 18 14:26:13 2017 New Revision: 311199 URL: http://llvm.org/viewvc/llvm-project?rev=311199&view=rev Log: [clang-diff] Move the JSON export function to clang-diff Reviewers: arphaman Subscribers: klimek Differential Revision: https://reviews.llvm.org/D36178 Added:

r311173 - [clang-diff] Add commandline arguments.

2017-08-18 Thread Johannes Altmanninger via cfe-commits
Author: krobelus Date: Fri Aug 18 09:34:22 2017 New Revision: 311173 URL: http://llvm.org/viewvc/llvm-project?rev=311173&view=rev Log: [clang-diff] Add commandline arguments. Summary: Support command line options for build path and extra arguments This emulates the options accepted by clang tools

r311172 - [clang-diff] Fix some errors and inconsistencies

2017-08-18 Thread Johannes Altmanninger via cfe-commits
Author: krobelus Date: Fri Aug 18 09:34:15 2017 New Revision: 311172 URL: http://llvm.org/viewvc/llvm-project?rev=311172&view=rev Log: [clang-diff] Fix some errors and inconsistencies Fix to the computation of the rightmost descendant. Prevents root nodes from being mapped if they are already ma

r309737 - [clang-diff] Move data declarations to the public header

2017-08-01 Thread Johannes Altmanninger via cfe-commits
Author: krobelus Date: Tue Aug 1 13:17:40 2017 New Revision: 309737 URL: http://llvm.org/viewvc/llvm-project?rev=309737&view=rev Log: [clang-diff] Move data declarations to the public header Modified: cfe/trunk/include/clang/Tooling/ASTDiff/ASTDiff.h cfe/trunk/include/clang/Tooling/ASTDi

r309738 - [clang-diff] Renames, NFC

2017-08-01 Thread Johannes Altmanninger via cfe-commits
Author: krobelus Date: Tue Aug 1 13:17:46 2017 New Revision: 309738 URL: http://llvm.org/viewvc/llvm-project?rev=309738&view=rev Log: [clang-diff] Renames, NFC Modified: cfe/trunk/include/clang/Tooling/ASTDiff/ASTDiff.h cfe/trunk/lib/Tooling/ASTDiff/ASTDiff.cpp Modified: cfe/trunk/inclu

r309276 - [clang-diff] Rename, NFC

2017-07-27 Thread Johannes Altmanninger via cfe-commits
Author: krobelus Date: Thu Jul 27 08:04:44 2017 New Revision: 309276 URL: http://llvm.org/viewvc/llvm-project?rev=309276&view=rev Log: [clang-diff] Rename, NFC Modified: cfe/trunk/tools/clang-diff/ClangDiff.cpp Modified: cfe/trunk/tools/clang-diff/ClangDiff.cpp URL: http://llvm.org/viewvc/l