[PATCH] Provide user name in ClangTidyOptions.

Alexander Kornienko alexfh at google.com
Tue Sep 23 12:07:45 PDT 2014


================
Comment at: clang-tidy/ClangTidyOptions.h:58
@@ -57,2 +57,3 @@
     Options.AnalyzeTemporaryDtors = false;
+    Options.User = "unknown user";
     return Options;
----------------
klimek wrote:
> I'd probably default to empty, so checks can decide not to insert something in case there's no user name available.
llvm::None would work better for signalling that there's no value available.

http://reviews.llvm.org/D5440






More information about the cfe-commits mailing list