[PATCH] D72910: Fix a bug with clang with object destructor, while skipping object initialization - make clang crash

2020-01-17 Thread ido via Phabricator via cfe-commits
ykfre added a comment. In D72910#1826293 , @dim wrote: > Aha, which version of clang-cl are you using? With the released version of > clang-cl 9.0.1, I get a warning instead of an error: > > cleanup.cpp(15,5): warning: jump from this goto statement to

[PATCH] D72940: Add a support for clang tidy to import another configurations files from .clang-tidy

2020-01-17 Thread ido via Phabricator via cfe-commits
ykfre created this revision. ykfre added a reviewer: clang-tools-extra. ykfre added a project: clang-tools-extra. Herald added subscribers: cfe-commits, arphaman. Herald added a project: clang. add ConfigurationsFilesToImport option - to make it possible to import another configurations files fr

[PATCH] D72910: Fix a bug with clang with object destructor, while skipping object initialization - make clang crash

2020-01-17 Thread ido via Phabricator via cfe-commits
ykfre added a comment. In D72910#1826108 , @dim wrote: > Eh, no it does not crash clang, at least not here? Instead it gives you a > compile error, as it should: > > cleanup.cpp:15:5: error: cannot jump from this goto statement to its label >

[PATCH] D72910: Fix a bug with clang with object destructor creation, while skipping object initialization - make clang crash

2020-01-17 Thread ido via Phabricator via cfe-commits
ykfre created this revision. ykfre added a project: clang. Herald added a subscriber: cfe-commits. The following code crashes clang: extern int g; class A { public: A() {}; ~A() {}; }; void b() { if(g) { goto clean_up; } A a; int i =