Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

clang-tidy runs more slowly with -checks=readability-* than -checks=* #26241

Open Quuxplusone opened 8 years ago

Quuxplusone commented 8 years ago
Bugzilla Link PR26242
Status NEW
Importance P normal
Reported by dcheng@google.com
Reported on 2016-01-21 12:42:09 -0800
Last modified on 2017-01-23 18:34:20 -0800
Version unspecified
Hardware PC Linux
CC alexfh@google.com, djasper@google.com, jbcoe@me.com, klimek@google.com
Fixed by commit(s)
Attachments
Blocks
Blocked by
See also
$ time third_party/llvm-build/Release+Asserts/bin/clang-tidy -p out/Debug -
checks=readability-* base/memory/scoped_ptr_unittest.cc
2165 warnings generated.
warning: ../../third_party/llvm-build/Release+Asserts/bin/clang++: 'linker'
input unused [clang-diagnostic-unused-command-line-argument]
clang-tidy:
/usr/local/google/ssd/src/chrome/src/third_party/llvm/tools/clang/lib/Basic/SourceManager.cpp:417:
const clang::SrcMgr::ContentCache*
clang::SourceManager::getOrCreateContentCache(const clang::FileEntry*, bool):
Assertion `FileEnt && "Didn't specify a file entry to use?"' failed.
Aborted (core dumped)

real    0m26.216s
user    0m25.248s
sys     0m0.791s

$ time third_party/llvm-build/Release+Asserts/bin/clang-tidy -p out/Debug -
checks=* base/memory/scoped_ptr_unittest.cc
clang-tidy:
/usr/local/google/ssd/src/chrome/src/third_party/llvm/tools/clang/include/clang/AST/Decl.h:170:
llvm::StringRef clang::NamedDecl::getName() const: Assertion
`Name.isIdentifier() && "Name is not a simple identifier"' failed.
Aborted (core dumped)

real    0m2.259s
user    0m1.972s
sys     0m0.136s

Maybe I'm doing something wrong?
Quuxplusone commented 8 years ago
You probably wanted to say that clang-tidy crashes faster with -checks=* than
with -checks=readability-* ;)

Can you provide preprocessed files so that I can reproduce this?