[cfe-commits] r74207 - /cfe/trunk/tools/index-test/index-test.cpp

Argiris Kirtzidis akyrtzi at gmail.com
Thu Jun 25 14:54:50 PDT 2009


Author: akirtzidis
Date: Thu Jun 25 16:54:50 2009
New Revision: 74207

URL: http://llvm.org/viewvc/llvm-project?rev=74207&view=rev
Log:
Add some comments and clean-up some leftover code.

Modified:
    cfe/trunk/tools/index-test/index-test.cpp

Modified: cfe/trunk/tools/index-test/index-test.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/index-test/index-test.cpp?rev=74207&r1=74206&r2=74207&view=diff

==============================================================================
--- cfe/trunk/tools/index-test/index-test.cpp (original)
+++ cfe/trunk/tools/index-test/index-test.cpp Thu Jun 25 16:54:50 2009
@@ -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 @@
   }
   
   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() << " ";





More information about the cfe-commits mailing list