================
Comment at: lib/ASTMatchers/Dynamic/Parser.cpp:88-89
@@ +87,4 @@
+
+    Result.Location.End.Line = Line;
+    Result.Location.End.Column = column() - 1;
+    return Result;
----------------
Dmitri Gribenko wrote:
> This makes 'End' inclusive.  In my opinion, this is not intuitive and not 
> consistent with STL-like half-open ranges.
> 
> If you decide to make 'End' non-inclusive, you can also factor out a function 
> to get a 'current' location (this piece of code is repeated twice in 
> getNextToken()).
IIRC source ranges have an inclusive end in clang (they usually point at the 
beginning of the last token of a range).


http://llvm-reviews.chandlerc.com/D714

BRANCH
  svn

ARCANIST PROJECT
  clang
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to