Ericsson / clang

Cross Translation Unit analysis capability for Clang Static Analyzer. (Fork of official clang at http://llvm.org/git/clang)
http://clang.llvm.org/
Other
15 stars 10 forks source link

Cherry pick from ctu-clang7 to ctu-clang8 #656

Closed martong closed 5 years ago

martong commented 5 years ago

This is a work-in-progress PR, which I am going update gradually as I cherry-pick from ctu-clang7. The baseline is "release_80" at May 8.

martong commented 5 years ago

Get CTU stuff which is already in master but not in release_80:

egbomrt@elx78373d5s|~/WORK/llvm/git/llvm/tools/clang on ctu-clang8?
± git log --pretty=format:"%ad%x09%h%x09%an%x09%s" --date=iso ctu-clang8..llvm/master | ag astimporter > 2
egbomrt@elx78373d5s|~/WORK/llvm/git/llvm/tools/clang on ctu-clang8?
± git log --pretty=format:"%ad%x09%h%x09%an%x09%s" --date=iso ctu-clang8..llvm/master --author "Gabor Marton" --author "Balazs Keri" > 1
egbomrt@elx78373d5s|~/WORK/llvm/git/llvm/tools/clang on ctu-clang8?
± cat 1 2 | sort | uniq > astimporter_upstreamed_patches                                        --- COMMAND ---
egbomrt@elx78373d5s|~/WORK/llvm/git/llvm/tools/clang on ctu-clang8?
± cat astimporter_upstreamed_patches

2019-05-08 15:23:48 +0000 1cba198 Gabor Marton [ASTImporter] Fix inequivalence of unresolved exception spec 2019-05-07 14:53:04 +0000 71cb096 Balazs Keri [ASTImporter] Corrected type of integer constant in a test. 2019-05-07 10:55:11 +0000 f16eeb9 Balazs Keri [ASTImporter] Import TemplateParameterLists in function templates. 2019-04-29 21:02:35 +0000 49c79db Raphael Isemann [ASTImporter] Add an ImportImpl method to allow customizing Import behavior. 2019-04-26 18:51:28 +0000 f894ac0 Shafik Yaghmour [ASTImporter] Copy Argument Passing Restrictions setting when importing a CXXRecordDecl definition 2019-04-09 09:12:32 +0000 e15e2b1 Bjorn Pettersson [ASTImporter] Fix in ASTImporter::Import_New(const Decl *) 2019-04-08 20:50:21 +0000 a214a7f Shafik Yaghmour [ASTImporter] Call to HandleNameConflict in VisitEnumDecl mistakeningly using Name instead of SearchName 2019-04-08 13:59:15 +0000 36e125b Balazs Keri Changed every use of ASTImporter::Import to Import_New 2019-04-01 15:48:29 +0000 21c0f50 Gabor Marton Attempt to fix failing buildbot (ppc64le) 2019-04-01 15:29:55 +0000 f584ff0 Gabor Marton [ASTImporter] Convert ODR diagnostics inside ASTImporter implementation 2019-04-01 14:46:53 +0000 20e5220 Gabor Marton [ASTImporter] Make ODR error handling configurable 2019-03-27 17:47:36 +0000 1c1e680 Shafik Yaghmour [ASTImporter] Fix IsStructuralMatch specialization for EnumDecl to prevent re-importing an EnumDecl while trying to complete it 2019-03-25 09:16:39 +0000 805d58d Balazs Keri [ASTImporter] Changed use of Import to Import_New in ASTNodeImporter. 2019-03-20 19:00:25 +0000 1e1ffe5 Raphael Isemann Remove the unused return value in ASTImporter::Imported [NFC] 2019-03-20 15:42:42 +0000 d4556f1 Balazs Keri [ASTImporter] Remove obsolete function ImportTemplateParameterList. 2019-03-19 14:04:50 +0000 f6f53c0 Gabor Marton [ASTImporter] Fix redecl failures of FunctionTemplateSpec 2019-03-19 13:34:10 +0000 e99393c Gabor Marton [ASTImporter] Fix redecl failures of ClassTemplateSpec 2019-03-14 14:20:23 +0000 c11ba05 Balazs Keri [ASTImporter] Fix import of NestedNameSpecifierLoc. 2019-03-07 14:09:18 +0000 17416dc Balazs Keri [ASTImporter] Changed use of Import to Import_New in ASTImporter. 2019-03-07 13:38:20 +0000 c2be515 Gabor Marton [ASTImporter] Import member expr with explicit template args 2019-03-07 13:01:51 +0000 fd0b007 Gabor Marton [ASTImporter] Handle redecl chain of FunctionTemplateDecls 2019-03-05 11:23:24 +0000 334cc31 Gabor Marton [ASTImporter] Fix redecl failures of Class and ClassTemplate 2019-03-04 20:25:54 +0000 2f3e65f Shafik Yaghmour [ASTImporter] Handle built-in when importing SourceLocation and FileID 2019-02-28 15:24:59 +0000 658222e Gabor Marton [CTU] Do not allow different CPP dialects in CTU 2019-02-27 16:31:48 +0000 128411f Balazs Keri [ASTImporter] Improve import of FileID. 2019-02-26 19:26:41 +0000 5e83a6e Tom Roeder [ASTImporter] Add support for importing ChooseExpr AST nodes. 2019-02-26 02:22:22 +0000 d1f4744 Reid Kleckner Revert r354832 "[ASTImporter] Add support for importing ChooseExpr AST nodes." 2019-02-25 23:24:58 +0000 8208fdc Tom Roeder [ASTImporter] Add support for importing ChooseExpr AST nodes. 2019-02-20 19:07:36 +0000 d7aaedb Gabor Marton Fix remaining semicolon pedantic errors for intel 2019-02-20 16:57:41 +0000 4e71da0 Gabor Marton Fix compile error with Intel's compiler (-Werror=pedantic) 2019-02-18 13:09:27 +0000 94533b5 Gabor Marton [ASTImporter] Find previous friend function template 2019-02-18 11:09:56 +0000 86125ab Gabor Marton [ASTImporter] Unify redecl chain tests as type parameterized tests 2019-02-15 12:04:05 +0000 849fa75 Gabor Marton [ASTImporter] Import every Decl in lambda record 2019-02-14 13:07:03 +0000 b254627 Gabor Marton [ASTImporter] Check visibility/linkage of functions and variables 2019-02-11 10:27:58 +0000 fd8b7d7 Gabor Marton [ASTImporter] Add test RedeclChainShouldBeCorrectAmongstNamespaces 2019-02-08 09:19:34 +0000 132f5ed Gabor Marton [ASTImporter][ASTImporterSpecificLookup] Add test for different operators 2019-02-08 08:55:32 +0000 24b6249 Gabor Marton [AST] Fix structural inequivalence of operators 2019-02-07 16:52:48 +0000 7933f5f Gabor Marton [ASTImporter] Refactor unittests to be able to parameterize them in a more flexible way 2019-02-02 08:31:22 +0000 64bb5ec David Green [ASTImporter] Fix up test that only works on X86. 2019-01-28 21:55:33 +0000 0fcbf6da Shafik Yaghmour [ASTImporter] Fix handling of overriden methods during ASTImport 2019-01-28 10:01:11 +0000 bf4ebf6 Gabor Marton [AST] Add structural eq tests for template args 2019-01-24 16:27:21 +0000 a41fa7f Gabor Marton Fix failing buildbots 2019-01-24 15:42:20 +0000 1950719 Gabor Marton Fix failing buildbots 2019-01-24 14:47:44 +0000 899258d Gabor Marton [ASTImporter] Fix inequality of functions with different attributes2019-05-08 15:23:48 +0000 1cba198 Gabor Marton [ASTImporter] Fix inequivalence of unresolved exception spec 2019-01-24 14:47:44 +0000 899258d Gabor Marton [ASTImporter] Fix inequality of functions with different attributes 2019-01-22 17:59:45 +0000 528084e Raphael Isemann [ASTImporter] Fix importing OperatorDelete from CXXConstructorDecl 2019-01-21 10:14:31 +0000 19fdbae Raphael Isemann [ASTImporter] Add test for importing anonymous namespaces. egbomrt@elx78373d5s|~/WORK/llvm/git/llvm/tools/clang on ctu-clang8? ±

Automatically cherry-pick CTU stuff which is already in master but not in release_80:

egbomrt@elx78373d5s|~/WORK/llvm/git/llvm/tools/clang on ctu-clang8?
± cat do_cherry.sh
#!/bin/bash
set -e
file="astimporter_upstreamed_patches"
while IFS=: read -r line
do
    hash=$(echo "$line" | cut -f2)
    echo "$hash"
    git cherry-pick "$hash"
done <"$file"
egbomrt@elx78373d5s|~/WORK/llvm/git/llvm/tools/clang on ctu-clang8?
±

Update: release_90

...
$ git log --pretty=format:"%ad%x09%h%x09%an%x09%s" --date=iso llvm/release_90..llvm/master include/clang/AST/ASTImporter*.h include/clang/AST/ASTStructuralEquivalence.h include/clang/AST/ExternalASTMerger.h lib/AST/ASTImporter* lib/AST/ASTStructuralEquivalence.cpp lib/Frontend/ASTMerge.cpp lib/CrossTU/* > 3
$ # Add an extra new line, so cat would not messup the lines
$ echo >> 1
$ echo >> 2
$ cat 1 2 3 | sort | uniq > astimporter_upstreamed_patches
$ vim astimporter_upstreamed_patches # remove first line
martong commented 5 years ago

Github thinks that this PR is merged because I mistakenly force pushed it, but then I force pushed the branch to the original hash. Still, the PR's status did not change.