[PATCH] Added a naive NOLINT implementation.

Manuel Klimek klimek at google.com
Thu Feb 27 10:36:48 PST 2014


  LG


================
Comment at: clang-tidy/ClangTidyDiagnosticConsumer.cpp:48
@@ +47,3 @@
+  if (!Invalid) {
+    StringRef Line(CharacterData);
+    Line = Line.substr(0, Line.find_first_of("\r\n"));
----------------
I'd probably prefer a combination of getOffset and getBufferData or getBuffer  instead of scanning for the 0 byte.


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

BRANCH
  svn

ARCANIST PROJECT
  clang-tools-extra



More information about the cfe-commits mailing list