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 | 6e4a86ddadea69e855603c1733d8b5bc99fc910d (patch) | |
tree | 8860841089f4f095224dbb06f3ce1bedbfe4b1ee /tools/index-test | |
parent | c75bc2d1f6f637098abc5db4caf0551f9437471e (diff) |
Add some comments and clean-up some leftover code.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74207 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/index-test')
-rw-r--r-- | tools/index-test/index-test.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/tools/index-test/index-test.cpp b/tools/index-test/index-test.cpp index 0acaf7803c..63d37b2baa 100644 --- a/tools/index-test/index-test.cpp +++ b/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() << " "; |