diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2009-06-25 21:54:50 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2009-06-25 21:54:50 +0000 |
commit | bf61749b4756b6a4907976a98c1940e72d870139 (patch) | |
tree | 5f5fef4d7400325c41fcd26bfc91ba92e0a482c7 /clang/tools/index-test/index-test.cpp | |
parent | a4194b10821209c4e57466912833f657b4abb353 (diff) | |
download | bcm5719-llvm-bf61749b4756b6a4907976a98c1940e72d870139.tar.gz bcm5719-llvm-bf61749b4756b6a4907976a98c1940e72d870139.zip |
Add some comments and clean-up some leftover code.
llvm-svn: 74207
Diffstat (limited to 'clang/tools/index-test/index-test.cpp')
-rw-r--r-- | clang/tools/index-test/index-test.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/clang/tools/index-test/index-test.cpp b/clang/tools/index-test/index-test.cpp index 0acaf7803cf..63d37b2baaf 100644 --- a/clang/tools/index-test/index-test.cpp +++ b/clang/tools/index-test/index-test.cpp @@ -17,8 +17,9 @@ // //===----------------------------------------------------------------------===// // -// -Wfatal-errors -// -ftabstop=width +// -point-at [file:column:line] +// Point at a declaration/statement/expression. If no other operation is +// specified, prints some info about it. // //===----------------------------------------------------------------------===// @@ -111,12 +112,6 @@ int main(int argc, char **argv) { } if (Point.D) { - if (PointAtLocation.empty()) { - llvm::errs() << "'-print-point-info' should be used together " - "with '-point-at'\n"; - return 1; - } - llvm::raw_ostream &OS = llvm::outs(); assert(Point.D && "If no node was found we should have exited with error"); OS << "Declaration node at point: " << Point.D->getDeclKindName() << " "; |