Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(104)

Unified Diff: base/logging.h

Issue 2720453003: Hack analysis macros for Windows to avoid compiler bug (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/logging.h
diff --git a/base/logging.h b/base/logging.h
index c969f3dcc1684bacbfa11ebec5f54d158c20a780..3221b687c4300e89b0887b17a62ab97f928ebabd 100644
--- a/base/logging.h
+++ b/base/logging.h
@@ -320,7 +320,9 @@ inline constexpr TVal&& AnalysisAssumeTrue(TVal&& arg) {
return std::forward<TVal>(arg);
}
-#define ANALYZER_ASSUME_TRUE(val) ::logging::AnalysisAssumeTrue(val)
+// Disable using AnalysisAssumeTrue because of VC++ compiler bug
+// https://connect.microsoft.com/VisualStudio/feedback/details/3124774
Wez 2017/02/25 00:25:47 This is the same as the no-analysis case, below, s
+#define ANALYZER_ASSUME_TRUE(val) (val)
#else // !_PREFAST_ & !__clang_analyzer__
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698