From 43e3deeabf3ca02da427b63df8604e2daf86e8a3 Mon Sep 17 00:00:00 2001
From: Sylvestre Ledru
While not strictly part of the compiler, the diagnostics from Clang's static analyzer can also be influenced -by the user via changes to the source code. See the avaliable +by the user via changes to the source code. See the available annotations and the analyzer's FAQ page for diff --git a/lib/Sema/SemaOverload.cpp b/lib/Sema/SemaOverload.cpp index bdf6f60df3..7fac1c6ec4 100644 --- a/lib/Sema/SemaOverload.cpp +++ b/lib/Sema/SemaOverload.cpp @@ -9332,7 +9332,7 @@ bool Sema::ResolveAndFixSingleFunctionTemplateSpecialization( return true; } - // Fix the expresion to refer to 'fn'. + // Fix the expression to refer to 'fn'. SingleFunctionExpression = Owned(FixOverloadedFunctionReference(SrcExpr.take(), found, fn)); diff --git a/test/SemaCXX/warn-thread-safety-analysis.cpp b/test/SemaCXX/warn-thread-safety-analysis.cpp index 9523d43b9f..f7e4586983 100644 --- a/test/SemaCXX/warn-thread-safety-analysis.cpp +++ b/test/SemaCXX/warn-thread-safety-analysis.cpp @@ -1702,7 +1702,7 @@ struct TestTryLock { bool b2 = b; if (cond) b = true; - if (b) { // b should be unknown at this point, becuase of the join point + if (b) { // b should be unknown at this point, because of the join point a = 8; // expected-warning {{writing variable 'a' requires locking 'mu' exclusively}} } if (b2) { // b2 should be known at this point. diff --git a/www/analyzer/installation.html b/www/analyzer/installation.html index ebccd071cd..2eb7937ee6 100644 --- a/www/analyzer/installation.html +++ b/www/analyzer/installation.html @@ -93,7 +93,7 @@ source code.
For example, if you built a Debug+Asserts build of LLVM/Clang (the default), the resultant clang binary will be in $(OBJDIR)/Debug+Asserts/bin (where $(OBJDIR) is often the same as the root source directory). You -can also do make install to install the LLVM/Clang libaries and +can also do make install to install the LLVM/Clang libraries and binaries to the installation directory of your choice (specified when you run configure).