r340271 - Add missing library dependency to fix build break after rC340247
Author: inouehrs Date: Tue Aug 21 04:41:41 2018 New Revision: 340271 URL: http://llvm.org/viewvc/llvm-project?rev=340271&view=rev Log: Add missing library dependency to fix build break after rC340247 Modified: cfe/trunk/lib/ARCMigrate/CMakeLists.txt Modified: cfe/trunk/lib/ARCMigrate/CMakeLists.txt URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/ARCMigrate/CMakeLists.txt?rev=340271&r1=340270&r2=340271&view=diff == --- cfe/trunk/lib/ARCMigrate/CMakeLists.txt (original) +++ cfe/trunk/lib/ARCMigrate/CMakeLists.txt Tue Aug 21 04:41:41 2018 @@ -35,4 +35,5 @@ add_clang_library(clangARCMigrate clangSema clangSerialization clangStaticAnalyzerCheckers + clangStaticAnalyzerCore ) ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
r340386 - [AST] correct the behavior of -fvisibility-inlines-hidden option (don't make static local variables hidden)
Author: inouehrs Date: Tue Aug 21 22:43:27 2018 New Revision: 340386 URL: http://llvm.org/viewvc/llvm-project?rev=340386&view=rev Log: [AST] correct the behavior of -fvisibility-inlines-hidden option (don't make static local variables hidden) The command line option -fvisibility-inlines-hidden makes inlined method hidden, but it is expected not to affect the visibility of static local variables in the function. However, Clang makes the static local variables in the function also hidden as reported in PR37595. This problem causes LLVM bootstarp failure on Fedora 28 if configured with -DBUILD_SHARED_LIBS=ON. This patch makes the behavior of -fvisibility-inlines-hidden option to be consistent with that of gcc; the option does not change the visibility of the static local variables if the containing function does not associated with explicit visibility attribute and becomes hidden due to this option. Differential Revision: https://reviews.llvm.org/D50968 Added: cfe/trunk/test/CodeGenCXX/visibility-inlines-hidden-staticvar.cpp Modified: cfe/trunk/lib/AST/Decl.cpp Modified: cfe/trunk/lib/AST/Decl.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/Decl.cpp?rev=340386&r1=340385&r2=340386&view=diff == --- cfe/trunk/lib/AST/Decl.cpp (original) +++ cfe/trunk/lib/AST/Decl.cpp Tue Aug 21 22:43:27 2018 @@ -1262,6 +1262,16 @@ LinkageInfo LinkageComputer::getLVForLoc !isTemplateInstantiation(FD->getTemplateSpecializationKind())) return LinkageInfo::none(); +// If a function is hidden by -fvisibility-inlines-hidden option and +// is not explicitly attributed as a hidden function, +// we should not make static local variables in the function hidden. +if (isa(D) && useInlineVisibilityHidden(FD) && +!(!hasExplicitVisibilityAlready(computation) && + getExplicitVisibility(FD, computation))) { + assert(cast(D)->isStaticLocal()); + return LinkageInfo(VisibleNoLinkage, DefaultVisibility, false); +} + LV = getLVForDecl(FD, computation); } if (!isExternallyVisible(LV.getLinkage())) Added: cfe/trunk/test/CodeGenCXX/visibility-inlines-hidden-staticvar.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/visibility-inlines-hidden-staticvar.cpp?rev=340386&view=auto == --- cfe/trunk/test/CodeGenCXX/visibility-inlines-hidden-staticvar.cpp (added) +++ cfe/trunk/test/CodeGenCXX/visibility-inlines-hidden-staticvar.cpp Tue Aug 21 22:43:27 2018 @@ -0,0 +1,65 @@ +// RUN: %clang_cc1 -triple i386-unknown-unknown -std=c++11 -fvisibility-inlines-hidden -emit-llvm -o - %s -O2 -disable-llvm-passes | FileCheck %s +// RUN: %clang_cc1 -triple i386-unknown-unknown -std=c++11 -emit-llvm -o - %s -O2 -disable-llvm-passes | FileCheck -check-prefixes=CHECK-NO-VIH %s + +// When a function is hidden due to -fvisibility-inlines-hidden option, static local variables of the function should not be hidden by the option. + +// CHECK-DAG: @_ZZ4funcvE3var = internal global i32 0 +// CHECK-DAG: @_ZZ11hidden_funcvE3var = internal global i32 0 +// CHECK-DAG: @_ZZ12default_funcvE3var = internal global i32 0 +// CHECK-DAG: @_ZZ11inline_funcvE3var = linkonce_odr global i32 0, comdat +// CHECK-DAG: @_ZZ18inline_hidden_funcvE3var = linkonce_odr hidden global i32 0, comdat +// CHECK-DAG: @_ZZ19inline_default_funcvE3var = linkonce_odr global i32 0, comdat +// CHECK-DAG: define i32 @_Z4funcv() +// CHECK-DAG: define hidden i32 @_Z11hidden_funcv() +// CHECK-DAG: define i32 @_Z12default_funcv() +// CHECK-DAG: define linkonce_odr hidden i32 @_Z11inline_funcv() +// CHECK-DAG: define linkonce_odr hidden i32 @_Z18inline_hidden_funcv() +// CHECK-DAG: define linkonce_odr i32 @_Z19inline_default_funcv() + +// CHECK-NO-VIH-DAG: @_ZZ4funcvE3var = internal global i32 0 +// CHECK-NO-VIH-DAG: @_ZZ11hidden_funcvE3var = internal global i32 0 +// CHECK-NO-VIH-DAG: @_ZZ12default_funcvE3var = internal global i32 0 +// CHECK-NO-VIH-DAG: @_ZZ11inline_funcvE3var = linkonce_odr global i32 0, comdat +// CHECK-NO-VIH-DAG: @_ZZ18inline_hidden_funcvE3var = linkonce_odr hidden global i32 0, comdat +// CHECK-NO-VIH-DAG: @_ZZ19inline_default_funcvE3var = linkonce_odr global i32 0, comdat +// CHECK-NO-VIH-DAG: define i32 @_Z4funcv() +// CHECK-NO-VIH-DAG: define hidden i32 @_Z11hidden_funcv() +// CHECK-NO-VIH-DAG: define i32 @_Z12default_funcv() +// CHECK-NO-VIH-DAG: define linkonce_odr i32 @_Z11inline_funcv() +// CHECK-NO-VIH-DAG: define linkonce_odr hidden i32 @_Z18inline_hidden_funcv() +// CHECK-NO-VIH-DAG: define linkonce_odr i32 @_Z19inline_default_funcv() + + +int func(void) { + static int var = 0; + return var++; +} +inline int inline_func(void) { + static int var = 0; + return var++; +} +int __attribute__((visibility("hidden"))) hidden_func(void) { + static int var = 0; + return var++; +} +inline int __attribu
r325753 - [NFC] fix trivial typos in comments
Author: inouehrs Date: Wed Feb 21 23:49:13 2018 New Revision: 325753 URL: http://llvm.org/viewvc/llvm-project?rev=325753&view=rev Log: [NFC] fix trivial typos in comments "a a"->"a" Modified: cfe/trunk/include/clang/Sema/ScopeInfo.h cfe/trunk/test/SemaCXX/ms-uuid.cpp Modified: cfe/trunk/include/clang/Sema/ScopeInfo.h URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Sema/ScopeInfo.h?rev=325753&r1=325752&r2=325753&view=diff == --- cfe/trunk/include/clang/Sema/ScopeInfo.h (original) +++ cfe/trunk/include/clang/Sema/ScopeInfo.h Wed Feb 21 23:49:13 2018 @@ -799,7 +799,7 @@ public: /// Potentially capturable variables of a nested lambda that might need /// to be captured by the lambda are housed here. /// This is specifically useful for generic lambdas or - /// lambdas within a a potentially evaluated-if-used context. + /// lambdas within a potentially evaluated-if-used context. /// If an enclosing variable is named in an expression of a lambda nested /// within a generic lambda, we don't always know know whether the variable /// will truly be odr-used (i.e. need to be captured) by that nested lambda, Modified: cfe/trunk/test/SemaCXX/ms-uuid.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/ms-uuid.cpp?rev=325753&r1=325752&r2=325753&view=diff == --- cfe/trunk/test/SemaCXX/ms-uuid.cpp (original) +++ cfe/trunk/test/SemaCXX/ms-uuid.cpp Wed Feb 21 23:49:13 2018 @@ -23,7 +23,7 @@ namespace { // clang-cl implements the following simpler (but largely compatible) behavior // instead: // * [] and __declspec uuids have the same behavior. -// * If there are several uuids on a a class (no matter if on the same decl or +// * If there are several uuids on a class (no matter if on the same decl or // on several decls), it is an error if they don't match. // * Having several uuids that match is ok. ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
r304188 - [trivial] fix a typo in comment, NFC
Author: inouehrs Date: Tue May 30 00:06:46 2017 New Revision: 304188 URL: http://llvm.org/viewvc/llvm-project?rev=304188&view=rev Log: [trivial] fix a typo in comment, NFC Modified: cfe/trunk/lib/Frontend/SerializedDiagnosticPrinter.cpp Modified: cfe/trunk/lib/Frontend/SerializedDiagnosticPrinter.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/SerializedDiagnosticPrinter.cpp?rev=304188&r1=304187&r2=304188&view=diff == --- cfe/trunk/lib/Frontend/SerializedDiagnosticPrinter.cpp (original) +++ cfe/trunk/lib/Frontend/SerializedDiagnosticPrinter.cpp Tue May 30 00:06:46 2017 @@ -506,7 +506,7 @@ void SDiagsWriter::EmitBlockInfoBlock() Abbrev->Add(BitCodeAbbrevOp(RECORD_FILENAME)); Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 10)); // Mapped file ID. Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 32)); // Size. - Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 32)); // Modifcation time. + Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 32)); // Modification time. Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 16)); // Text size. Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Blob)); // File name text. Abbrevs.set(RECORD_FILENAME, Stream.EmitBlockInfoAbbrev(BLOCK_DIAG, ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
r306789 - fix trivial typos, NFC
Author: inouehrs Date: Thu Jun 29 22:40:31 2017 New Revision: 306789 URL: http://llvm.org/viewvc/llvm-project?rev=306789&view=rev Log: fix trivial typos, NFC Modified: cfe/trunk/include/clang/Lex/PTHLexer.h cfe/trunk/include/clang/Sema/Sema.h cfe/trunk/lib/Parse/ParseDeclCXX.cpp cfe/trunk/lib/Sema/SemaDeclAttr.cpp Modified: cfe/trunk/include/clang/Lex/PTHLexer.h URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Lex/PTHLexer.h?rev=306789&r1=306788&r2=306789&view=diff == --- cfe/trunk/include/clang/Lex/PTHLexer.h (original) +++ cfe/trunk/include/clang/Lex/PTHLexer.h Thu Jun 29 22:40:31 2017 @@ -36,7 +36,7 @@ class PTHLexer : public PreprocessorLexe const unsigned char* LastHashTokPtr; /// PPCond - Pointer to a side table in the PTH file that provides a - /// a consise summary of the preproccessor conditional block structure. + /// a concise summary of the preprocessor conditional block structure. /// This is used to perform quick skipping of conditional blocks. const unsigned char* PPCond; Modified: cfe/trunk/include/clang/Sema/Sema.h URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Sema/Sema.h?rev=306789&r1=306788&r2=306789&view=diff == --- cfe/trunk/include/clang/Sema/Sema.h (original) +++ cfe/trunk/include/clang/Sema/Sema.h Thu Jun 29 22:40:31 2017 @@ -3233,7 +3233,7 @@ public: void ProcessPragmaWeak(Scope *S, Decl *D); // Decl attributes - this routine is the top level dispatcher. void ProcessDeclAttributes(Scope *S, Decl *D, const Declarator &PD); - // Helper for delayed proccessing of attributes. + // Helper for delayed processing of attributes. void ProcessDeclAttributeDelayed(Decl *D, const AttributeList *AttrList); void ProcessDeclAttributeList(Scope *S, Decl *D, const AttributeList *AL, bool IncludeCXX11Attributes = true); Modified: cfe/trunk/lib/Parse/ParseDeclCXX.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Parse/ParseDeclCXX.cpp?rev=306789&r1=306788&r2=306789&view=diff == --- cfe/trunk/lib/Parse/ParseDeclCXX.cpp (original) +++ cfe/trunk/lib/Parse/ParseDeclCXX.cpp Thu Jun 29 22:40:31 2017 @@ -1915,7 +1915,7 @@ void Parser::ParseClassSpecifier(tok::To } if (!TagOrTempResult.isInvalid()) -// Delayed proccessing of attributes. +// Delayed processing of attributes. Actions.ProcessDeclAttributeDelayed(TagOrTempResult.get(), attrs.getList()); const char *PrevSpec = nullptr; Modified: cfe/trunk/lib/Sema/SemaDeclAttr.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDeclAttr.cpp?rev=306789&r1=306788&r2=306789&view=diff == --- cfe/trunk/lib/Sema/SemaDeclAttr.cpp (original) +++ cfe/trunk/lib/Sema/SemaDeclAttr.cpp Thu Jun 29 22:40:31 2017 @@ -6571,7 +6571,7 @@ void Sema::ProcessDeclAttributeList(Scop } } -// Helper for delayed proccessing TransparentUnion attribute. +// Helper for delayed processing TransparentUnion attribute. void Sema::ProcessDeclAttributeDelayed(Decl *D, const AttributeList *AttrList) { for (const AttributeList *Attr = AttrList; Attr; Attr = Attr->getNext()) if (Attr->getKind() == AttributeList::AT_TransparentUnion) { ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
r306954 - fix trivial typos; NFC
Author: inouehrs Date: Sat Jul 1 01:46:43 2017 New Revision: 306954 URL: http://llvm.org/viewvc/llvm-project?rev=306954&view=rev Log: fix trivial typos; NFC Modified: cfe/trunk/lib/Basic/Targets.cpp cfe/trunk/lib/Driver/ToolChains/MipsLinux.cpp cfe/trunk/lib/Frontend/ModuleDependencyCollector.cpp cfe/trunk/lib/Sema/SemaDecl.cpp cfe/trunk/lib/Serialization/ASTReader.cpp Modified: cfe/trunk/lib/Basic/Targets.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/Targets.cpp?rev=306954&r1=306953&r2=306954&view=diff == --- cfe/trunk/lib/Basic/Targets.cpp (original) +++ cfe/trunk/lib/Basic/Targets.cpp Sat Jul 1 01:46:43 2017 @@ -2706,7 +2706,7 @@ class X86TargetInfo : public TargetInfo CK_C3_2, /// This enumerator is a bit odd, as GCC no longer accepts -march=yonah. -/// Clang however has some logic to suport this. +/// Clang however has some logic to support this. // FIXME: Warn, deprecate, and potentially remove this. CK_Yonah, //@} Modified: cfe/trunk/lib/Driver/ToolChains/MipsLinux.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/ToolChains/MipsLinux.cpp?rev=306954&r1=306953&r2=306954&view=diff == --- cfe/trunk/lib/Driver/ToolChains/MipsLinux.cpp (original) +++ cfe/trunk/lib/Driver/ToolChains/MipsLinux.cpp Sat Jul 1 01:46:43 2017 @@ -109,7 +109,7 @@ std::string MipsLLVMToolChain::findLibCx void MipsLLVMToolChain::AddCXXStdlibLibArgs(const ArgList &Args, ArgStringList &CmdArgs) const { assert((GetCXXStdlibType(Args) == ToolChain::CST_Libcxx) && - "Only -lc++ (aka libxx) is suported in this toolchain."); + "Only -lc++ (aka libxx) is supported in this toolchain."); CmdArgs.push_back("-lc++"); CmdArgs.push_back("-lc++abi"); Modified: cfe/trunk/lib/Frontend/ModuleDependencyCollector.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/ModuleDependencyCollector.cpp?rev=306954&r1=306953&r2=306954&view=diff == --- cfe/trunk/lib/Frontend/ModuleDependencyCollector.cpp (original) +++ cfe/trunk/lib/Frontend/ModuleDependencyCollector.cpp Sat Jul 1 01:46:43 2017 @@ -248,7 +248,7 @@ std::error_code ModuleDependencyCollecto // Always map a canonical src path to its real path into the YAML, by doing // this we map different virtual src paths to the same entry in the VFS // overlay, which is a way to emulate symlink inside the VFS; this is also - // needed for correctness, not doing that can lead to module redifinition + // needed for correctness, not doing that can lead to module redefinition // errors. addFileMapping(VirtualPath, CacheDst); return std::error_code(); Modified: cfe/trunk/lib/Sema/SemaDecl.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDecl.cpp?rev=306954&r1=306953&r2=306954&view=diff == --- cfe/trunk/lib/Sema/SemaDecl.cpp (original) +++ cfe/trunk/lib/Sema/SemaDecl.cpp Sat Jul 1 01:46:43 2017 @@ -11975,7 +11975,7 @@ Sema::CheckForFunctionRedefinition(Funct if (canRedefineFunction(Definition, getLangOpts())) return; - // Don't emit an error when this is redifinition of a typo-corrected + // Don't emit an error when this is redefinition of a typo-corrected // definition. if (TypoCorrectedFunctionDefinitions.count(Definition)) return; Modified: cfe/trunk/lib/Serialization/ASTReader.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Serialization/ASTReader.cpp?rev=306954&r1=306953&r2=306954&view=diff == --- cfe/trunk/lib/Serialization/ASTReader.cpp (original) +++ cfe/trunk/lib/Serialization/ASTReader.cpp Sat Jul 1 01:46:43 2017 @@ -8263,7 +8263,7 @@ ASTReader::getSourceDescriptor(unsigned return ExternalASTSource::ASTSourceDescriptor(*M); // If there is only a single PCH, return it instead. - // Chained PCH are not suported. + // Chained PCH are not supported. const auto &PCHChain = ModuleMgr.pch_modules(); if (std::distance(std::begin(PCHChain), std::end(PCHChain))) { ModuleFile &MF = ModuleMgr.getPrimaryModule(); ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
r306969 - fix trivial typos in comments; NFC
Author: inouehrs Date: Sat Jul 1 23:12:49 2017 New Revision: 306969 URL: http://llvm.org/viewvc/llvm-project?rev=306969&view=rev Log: fix trivial typos in comments; NFC Modified: cfe/trunk/lib/Parse/ParseDecl.cpp cfe/trunk/lib/Parse/ParseExpr.cpp cfe/trunk/test/Sema/warn-documentation.cpp Modified: cfe/trunk/lib/Parse/ParseDecl.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Parse/ParseDecl.cpp?rev=306969&r1=306968&r2=306969&view=diff == --- cfe/trunk/lib/Parse/ParseDecl.cpp (original) +++ cfe/trunk/lib/Parse/ParseDecl.cpp Sat Jul 1 23:12:49 2017 @@ -6650,7 +6650,7 @@ void Parser::ParseTypeofSpecifier(DeclSp return; } - // If we get here, the operand to the typeof was an expresion. + // If we get here, the operand to the typeof was an expression. if (Operand.isInvalid()) { DS.SetTypeSpecError(); return; Modified: cfe/trunk/lib/Parse/ParseExpr.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Parse/ParseExpr.cpp?rev=306969&r1=306968&r2=306969&view=diff == --- cfe/trunk/lib/Parse/ParseExpr.cpp (original) +++ cfe/trunk/lib/Parse/ParseExpr.cpp Sat Jul 1 23:12:49 2017 @@ -1866,7 +1866,7 @@ Parser::ParseExprAfterUnaryExprOrTypeTra } } - // If we get here, the operand to the typeof/sizeof/alignof was an expresion. + // If we get here, the operand to the typeof/sizeof/alignof was an expression. isCastExpr = false; return Operand; } @@ -1972,7 +1972,7 @@ ExprResult Parser::ParseUnaryExprOrTypeT if (OpTok.isOneOf(tok::kw_alignof, tok::kw__Alignof)) Diag(OpTok, diag::ext_alignof_expr) << OpTok.getIdentifierInfo(); - // If we get here, the operand to the sizeof/alignof was an expresion. + // If we get here, the operand to the sizeof/alignof was an expression. if (!Operand.isInvalid()) Operand = Actions.ActOnUnaryExprOrTypeTraitExpr(OpTok.getLocation(), ExprKind, Modified: cfe/trunk/test/Sema/warn-documentation.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/warn-documentation.cpp?rev=306969&r1=306968&r2=306969&view=diff == --- cfe/trunk/test/Sema/warn-documentation.cpp (original) +++ cfe/trunk/test/Sema/warn-documentation.cpp Sat Jul 1 23:12:49 2017 @@ -1186,7 +1186,7 @@ class Predicate /// @brief A C++ wrapper class for providing threaded access to a value /// of type T. /// -/// A template specilization class. +/// A template specialization class. //-- template<> class Predicate { ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
r307007 - fix trivial typos in comments; NFC
Author: inouehrs Date: Mon Jul 3 01:49:44 2017 New Revision: 307007 URL: http://llvm.org/viewvc/llvm-project?rev=307007&view=rev Log: fix trivial typos in comments; NFC Modified: cfe/trunk/bindings/python/clang/cindex.py cfe/trunk/lib/CodeGen/CGBlocks.cpp cfe/trunk/lib/CodeGen/CGCall.cpp cfe/trunk/lib/Frontend/Rewrite/RewriteModernObjC.cpp cfe/trunk/lib/Frontend/Rewrite/RewriteObjC.cpp cfe/trunk/www/analyzer/scripts/expandcollapse.js Modified: cfe/trunk/bindings/python/clang/cindex.py URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/bindings/python/clang/cindex.py?rev=307007&r1=307006&r2=307007&view=diff == --- cfe/trunk/bindings/python/clang/cindex.py (original) +++ cfe/trunk/bindings/python/clang/cindex.py Mon Jul 3 01:49:44 2017 @@ -782,7 +782,7 @@ CursorKind.CONVERSION_FUNCTION = CursorK # A C++ template type parameter CursorKind.TEMPLATE_TYPE_PARAMETER = CursorKind(27) -# A C++ non-type template paramater. +# A C++ non-type template parameter. CursorKind.TEMPLATE_NON_TYPE_PARAMETER = CursorKind(28) # A C++ template template parameter. Modified: cfe/trunk/lib/CodeGen/CGBlocks.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGBlocks.cpp?rev=307007&r1=307006&r2=307007&view=diff == --- cfe/trunk/lib/CodeGen/CGBlocks.cpp (original) +++ cfe/trunk/lib/CodeGen/CGBlocks.cpp Mon Jul 3 01:49:44 2017 @@ -1255,7 +1255,7 @@ CodeGenFunction::GenerateBlockFunction(G // For OpenCL passed block pointer can be private AS local variable or // global AS program scope variable (for the case with and without captures). - // Generic AS is used therefore to be able to accomodate both private and + // Generic AS is used therefore to be able to accommodate both private and // generic AS in one implementation. if (getLangOpts().OpenCL) selfTy = getContext().getPointerType(getContext().getAddrSpaceQualType( Modified: cfe/trunk/lib/CodeGen/CGCall.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGCall.cpp?rev=307007&r1=307006&r2=307007&view=diff == --- cfe/trunk/lib/CodeGen/CGCall.cpp (original) +++ cfe/trunk/lib/CodeGen/CGCall.cpp Mon Jul 3 01:49:44 2017 @@ -129,7 +129,7 @@ static void addExtParameterInfosForCall( paramInfos.resize(totalArgs); } -/// Adds the formal paramaters in FPT to the given prefix. If any parameter in +/// Adds the formal parameters in FPT to the given prefix. If any parameter in /// FPT has pass_object_size attrs, then we'll add parameters for those, too. static void appendParameterTypes(const CodeGenTypes &CGT, SmallVectorImpl &prefix, Modified: cfe/trunk/lib/Frontend/Rewrite/RewriteModernObjC.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/Rewrite/RewriteModernObjC.cpp?rev=307007&r1=307006&r2=307007&view=diff == --- cfe/trunk/lib/Frontend/Rewrite/RewriteModernObjC.cpp (original) +++ cfe/trunk/lib/Frontend/Rewrite/RewriteModernObjC.cpp Mon Jul 3 01:49:44 2017 @@ -6068,7 +6068,7 @@ void RewriteModernObjC::Initialize(ASTCo Preamble += "\n#define __OFFSETOFIVAR__(TYPE, MEMBER) ((long long) &((TYPE *)0)->MEMBER)\n"; } -/// RewriteIvarOffsetComputation - This rutine synthesizes computation of +/// RewriteIvarOffsetComputation - This routine synthesizes computation of /// ivar offset. void RewriteModernObjC::RewriteIvarOffsetComputation(ObjCIvarDecl *ivar, std::string &Result) { Modified: cfe/trunk/lib/Frontend/Rewrite/RewriteObjC.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/Rewrite/RewriteObjC.cpp?rev=307007&r1=307006&r2=307007&view=diff == --- cfe/trunk/lib/Frontend/Rewrite/RewriteObjC.cpp (original) +++ cfe/trunk/lib/Frontend/Rewrite/RewriteObjC.cpp Mon Jul 3 01:49:44 2017 @@ -5052,7 +5052,7 @@ void RewriteObjCFragileABI::Initialize(A Preamble += "\n#define __OFFSETOFIVAR__(TYPE, MEMBER) ((long long) &((TYPE *)0)->MEMBER)\n"; } -/// RewriteIvarOffsetComputation - This rutine synthesizes computation of +/// RewriteIvarOffsetComputation - This routine synthesizes computation of /// ivar offset. void RewriteObjCFragileABI::RewriteIvarOffsetComputation(ObjCIvarDecl *ivar, std::string &Result) { Modified: cfe/trunk/www/analyzer/scripts/expandcollapse.js URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/www/analyzer/scripts/expandcollapse.js?rev=307007&r1=307006&r2=307007&view=diff == --- cfe/trunk/www/analyzer/scripts/expandcollapse.js (or
r307123 - fix trivial typos in comments; NFC
Author: inouehrs Date: Tue Jul 4 22:37:45 2017 New Revision: 307123 URL: http://llvm.org/viewvc/llvm-project?rev=307123&view=rev Log: fix trivial typos in comments; NFC Modified: cfe/trunk/lib/AST/ExprConstant.cpp cfe/trunk/lib/Sema/SemaLambda.cpp Modified: cfe/trunk/lib/AST/ExprConstant.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/ExprConstant.cpp?rev=307123&r1=307122&r2=307123&view=diff == --- cfe/trunk/lib/AST/ExprConstant.cpp (original) +++ cfe/trunk/lib/AST/ExprConstant.cpp Tue Jul 4 22:37:45 2017 @@ -9508,7 +9508,7 @@ bool ComplexExprEvaluator::VisitBinaryOp case BO_Mul: if (Result.isComplexFloat()) { // This is an implementation of complex multiplication according to the - // constraints laid out in C11 Annex G. The implemantion uses the + // constraints laid out in C11 Annex G. The implemention uses the // following naming scheme: // (a + ib) * (c + id) ComplexValue LHS = Result; @@ -9589,7 +9589,7 @@ bool ComplexExprEvaluator::VisitBinaryOp case BO_Div: if (Result.isComplexFloat()) { // This is an implementation of complex division according to the - // constraints laid out in C11 Annex G. The implemantion uses the + // constraints laid out in C11 Annex G. The implemention uses the // following naming scheme: // (a + ib) / (c + id) ComplexValue LHS = Result; Modified: cfe/trunk/lib/Sema/SemaLambda.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaLambda.cpp?rev=307123&r1=307122&r2=307123&view=diff == --- cfe/trunk/lib/Sema/SemaLambda.cpp (original) +++ cfe/trunk/lib/Sema/SemaLambda.cpp Tue Jul 4 22:37:45 2017 @@ -1595,7 +1595,7 @@ ExprResult Sema::BuildLambdaExpr(SourceL ContainsUnexpandedParameterPack); // If the lambda expression's call operator is not explicitly marked constexpr // and we are not in a dependent context, analyze the call operator to infer - // its constexpr-ness, supressing diagnostics while doing so. + // its constexpr-ness, suppressing diagnostics while doing so. if (getLangOpts().CPlusPlus1z && !CallOperator->isInvalidDecl() && !CallOperator->isConstexpr() && !isa(CallOperator->getBody()) && ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
r307886 - fix typos in comments; NFC
Author: inouehrs Date: Wed Jul 12 23:51:20 2017 New Revision: 307886 URL: http://llvm.org/viewvc/llvm-project?rev=307886&view=rev Log: fix typos in comments; NFC Modified: cfe/trunk/include/clang/StaticAnalyzer/Core/CheckerManager.h cfe/trunk/lib/Parse/ParseCXXInlineMethods.cpp Modified: cfe/trunk/include/clang/StaticAnalyzer/Core/CheckerManager.h URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/StaticAnalyzer/Core/CheckerManager.h?rev=307886&r1=307885&r2=307886&view=diff == --- cfe/trunk/include/clang/StaticAnalyzer/Core/CheckerManager.h (original) +++ cfe/trunk/include/clang/StaticAnalyzer/Core/CheckerManager.h Wed Jul 12 23:51:20 2017 @@ -286,7 +286,7 @@ public: void runCheckersForEndAnalysis(ExplodedGraph &G, BugReporter &BR, ExprEngine &Eng); - /// \brief Run checkers on begining of function. + /// \brief Run checkers on beginning of function. void runCheckersForBeginFunction(ExplodedNodeSet &Dst, const BlockEdge &L, ExplodedNode *Pred, Modified: cfe/trunk/lib/Parse/ParseCXXInlineMethods.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Parse/ParseCXXInlineMethods.cpp?rev=307886&r1=307885&r2=307886&view=diff == --- cfe/trunk/lib/Parse/ParseCXXInlineMethods.cpp (original) +++ cfe/trunk/lib/Parse/ParseCXXInlineMethods.cpp Wed Jul 12 23:51:20 2017 @@ -889,7 +889,7 @@ bool Parser::ConsumeAndStoreFunctionProl // If the opening brace is not preceded by one of these tokens, we are // missing the mem-initializer-id. In order to recover better, we need // to use heuristics to determine if this '{' is most likely the -// begining of a brace-init-list or the function body. +// beginning of a brace-init-list or the function body. // Check the token after the corresponding '}'. TentativeParsingAction PA(*this); if (SkipUntil(tok::r_brace) && ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
r322551 - [NFC] fix trivial typo in document
Author: inouehrs Date: Tue Jan 16 05:19:31 2018 New Revision: 322551 URL: http://llvm.org/viewvc/llvm-project?rev=322551&view=rev Log: [NFC] fix trivial typo in document "the the" -> "the" Modified: cfe/trunk/docs/ThinLTO.rst Modified: cfe/trunk/docs/ThinLTO.rst URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/docs/ThinLTO.rst?rev=322551&r1=322550&r2=322551&view=diff == --- cfe/trunk/docs/ThinLTO.rst (original) +++ cfe/trunk/docs/ThinLTO.rst Tue Jan 16 05:19:31 2018 @@ -156,7 +156,7 @@ A policy string is a series of key-value Possible key-value pairs are: - ``cache_size=X%``: The maximum size for the cache directory is ``X`` percent - of the available space on the the disk. Set to 100 to indicate no limit, + of the available space on the disk. Set to 100 to indicate no limit, 50 to indicate that the cache size will not be left over half the available disk space. A value over 100 is invalid. A value of 0 disables the percentage size-based pruning. The default is 75%. ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
r322816 - Revert rC322769: [RISCV] Propagate -mabi and -march values to GNU assembler.
Author: inouehrs Date: Wed Jan 17 22:13:25 2018 New Revision: 322816 URL: http://llvm.org/viewvc/llvm-project?rev=322816&view=rev Log: Revert rC322769: [RISCV] Propagate -mabi and -march values to GNU assembler. Temporarily revert rC322769 due to buildbot failurs. Removed: cfe/trunk/test/Driver/Inputs/multilib_riscv_linux_sdk/riscv64-unknown-linux-gnu/bin/as cfe/trunk/test/Driver/riscv-gnutools.c Modified: cfe/trunk/lib/Driver/ToolChains/Gnu.cpp Modified: cfe/trunk/lib/Driver/ToolChains/Gnu.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/ToolChains/Gnu.cpp?rev=322816&r1=322815&r2=322816&view=diff == --- cfe/trunk/lib/Driver/ToolChains/Gnu.cpp (original) +++ cfe/trunk/lib/Driver/ToolChains/Gnu.cpp Wed Jan 17 22:13:25 2018 @@ -629,18 +629,6 @@ void tools::gnutools::Assembler::Constru ppc::getPPCAsmModeForCPU(getCPUName(Args, getToolChain().getTriple(; break; } - case llvm::Triple::riscv32: - case llvm::Triple::riscv64: { -StringRef ABIName = riscv::getRISCVABI(Args, getToolChain().getTriple()); -CmdArgs.push_back("-mabi"); -CmdArgs.push_back(ABIName.data()); -if (const Arg *A = Args.getLastArg(options::OPT_march_EQ)) { - StringRef MArch = A->getValue(); - CmdArgs.push_back("-march"); - CmdArgs.push_back(MArch.data()); -} -break; - } case llvm::Triple::sparc: case llvm::Triple::sparcel: { CmdArgs.push_back("-32"); Removed: cfe/trunk/test/Driver/Inputs/multilib_riscv_linux_sdk/riscv64-unknown-linux-gnu/bin/as URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/Inputs/multilib_riscv_linux_sdk/riscv64-unknown-linux-gnu/bin/as?rev=322815&view=auto == --- cfe/trunk/test/Driver/Inputs/multilib_riscv_linux_sdk/riscv64-unknown-linux-gnu/bin/as (original) +++ cfe/trunk/test/Driver/Inputs/multilib_riscv_linux_sdk/riscv64-unknown-linux-gnu/bin/as (removed) @@ -1 +0,0 @@ -#!/bin/true Removed: cfe/trunk/test/Driver/riscv-gnutools.c URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/riscv-gnutools.c?rev=322815&view=auto == --- cfe/trunk/test/Driver/riscv-gnutools.c (original) +++ cfe/trunk/test/Driver/riscv-gnutools.c (removed) @@ -1,14 +0,0 @@ -// Check gnutools are invoked with propagated values for -mabi and -march. - -// RUN: %clang -target riscv32-linux-unknown-elf -fno-integrated-as \ -// RUN: --gcc-toolchain=%S/Inputs/multilib_riscv_linux_sdk \ -// RUN: --sysroot=%S/Inputs/multilib_riscv_linux_sdk/sysroot %s -### \ -// RUN: 2>&1 | FileCheck -check-prefix=MABI-ILP32 %s -// RUN: %clang -target riscv32-linux-unknown-elf -fno-integrated-as \ -// RUN: -march=rv32g --gcc-toolchain=%S/Inputs/multilib_riscv_linux_sdk \ -// RUN: --sysroot=%S/Inputs/multilib_riscv_linux_sdk/sysroot %s -### \ -// RUN: 2>&1 | FileCheck -check-prefix=MABI-ILP32-MARCH-G %s - -// MABI-ILP32: "{{.*}}/Inputs/multilib_riscv_linux_sdk/lib/gcc/riscv64-unknown-linux-gnu/7.2.0/../../../../riscv64-unknown-linux-gnu/bin{{/|}}as" "-mabi" "ilp32" -// MABI-ILP32-MARCH-G: "{{.*}}/Inputs/multilib_riscv_linux_sdk/lib/gcc/riscv64-unknown-linux-gnu/7.2.0/../../../../riscv64-unknown-linux-gnu/bin{{/|}}as" "-mabi" "ilp32" "-march" "rv32g" - ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
r323078 - [NFC] fix trivial typos in comments
Author: inouehrs Date: Sun Jan 21 23:44:38 2018 New Revision: 323078 URL: http://llvm.org/viewvc/llvm-project?rev=323078&view=rev Log: [NFC] fix trivial typos in comments "the the" -> "the" Modified: cfe/trunk/lib/StaticAnalyzer/Checkers/CheckObjCDealloc.cpp cfe/trunk/lib/StaticAnalyzer/Checkers/GTestChecker.cpp cfe/trunk/test/Analysis/copypaste/macro-complexity.cpp cfe/trunk/test/Analysis/malloc-custom.c cfe/trunk/utils/analyzer/SATestAdd.py cfe/trunk/www/cxx_status.html Modified: cfe/trunk/lib/StaticAnalyzer/Checkers/CheckObjCDealloc.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Checkers/CheckObjCDealloc.cpp?rev=323078&r1=323077&r2=323078&view=diff == --- cfe/trunk/lib/StaticAnalyzer/Checkers/CheckObjCDealloc.cpp (original) +++ cfe/trunk/lib/StaticAnalyzer/Checkers/CheckObjCDealloc.cpp Sun Jan 21 23:44:38 2018 @@ -645,7 +645,7 @@ ObjCDeallocChecker::findPropertyOnDeallo bool ObjCDeallocChecker::diagnoseExtraRelease(SymbolRef ReleasedValue, const ObjCMethodCall &M, CheckerContext &C) const { - // Try to get the region from which the the released value was loaded. + // Try to get the region from which the released value was loaded. // Note that, unlike diagnosing for missing releases, here we don't track // values that must not be released in the state. This is because even if // these values escape, it is still an error under the rules of MRR to Modified: cfe/trunk/lib/StaticAnalyzer/Checkers/GTestChecker.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Checkers/GTestChecker.cpp?rev=323078&r1=323077&r2=323078&view=diff == --- cfe/trunk/lib/StaticAnalyzer/Checkers/GTestChecker.cpp (original) +++ cfe/trunk/lib/StaticAnalyzer/Checkers/GTestChecker.cpp Sun Jan 21 23:44:38 2018 @@ -161,7 +161,7 @@ void GTestChecker::modelAssertionResultC const CXXConstructorCall *Call, CheckerContext &C) const { assert(Call->getNumArgs() == 1); - // The first parameter of the the copy constructor must be the other + // The first parameter of the copy constructor must be the other // instance to initialize this instances fields from. SVal OtherVal = Call->getArgSVal(0); SVal ThisVal = Call->getCXXThisVal(); Modified: cfe/trunk/test/Analysis/copypaste/macro-complexity.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Analysis/copypaste/macro-complexity.cpp?rev=323078&r1=323077&r2=323078&view=diff == --- cfe/trunk/test/Analysis/copypaste/macro-complexity.cpp (original) +++ cfe/trunk/test/Analysis/copypaste/macro-complexity.cpp Sun Jan 21 23:44:38 2018 @@ -1,7 +1,7 @@ // RUN: %clang_analyze_cc1 -std=c++11 -analyzer-checker=alpha.clone.CloneChecker -analyzer-config alpha.clone.CloneChecker:MinimumCloneComplexity=10 -verify %s // Tests that the complexity value of a macro expansion is about the same as -// the complexity value of a normal function call and the the macro body doesn't +// the complexity value of a normal function call and the macro body doesn't // influence the complexity. See the CloneSignature class in CloneDetection.h // for more information about complexity values of clones. Modified: cfe/trunk/test/Analysis/malloc-custom.c URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Analysis/malloc-custom.c?rev=323078&r1=323077&r2=323078&view=diff == --- cfe/trunk/test/Analysis/malloc-custom.c (original) +++ cfe/trunk/test/Analysis/malloc-custom.c Sun Jan 21 23:44:38 2018 @@ -1,6 +1,6 @@ // RUN: %clang_analyze_cc1 -analyzer-checker=core,unix.Malloc -Wno-incompatible-library-redeclaration -verify %s -// Various tests to make the the analyzer is robust against custom +// Various tests to make the analyzer is robust against custom // redeclarations of memory routines. // // You wouldn't expect to see much of this in normal code, but, for example, Modified: cfe/trunk/utils/analyzer/SATestAdd.py URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/analyzer/SATestAdd.py?rev=323078&r1=323077&r2=323078&view=diff == --- cfe/trunk/utils/analyzer/SATestAdd.py (original) +++ cfe/trunk/utils/analyzer/SATestAdd.py Sun Jan 21 23:44:38 2018 @@ -32,11 +32,11 @@ the Repository Directory. (e.g., to adapt to newer version of clang) that should be applied to CachedSource before analysis. To construct this patch, - run the the download script to download +
r323177 - [NFC] fix trivial typos in comments
Author: inouehrs Date: Mon Jan 22 21:50:06 2018 New Revision: 323177 URL: http://llvm.org/viewvc/llvm-project?rev=323177&view=rev Log: [NFC] fix trivial typos in comments "the the" -> "the" Modified: cfe/trunk/include/clang/Basic/AddressSpaces.h cfe/trunk/include/clang/CodeGen/ConstantInitBuilder.h cfe/trunk/include/clang/StaticAnalyzer/Checkers/Checkers.td cfe/trunk/include/clang/Tooling/Refactoring/Rename/RenamingAction.h Modified: cfe/trunk/include/clang/Basic/AddressSpaces.h URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/AddressSpaces.h?rev=323177&r1=323176&r2=323177&view=diff == --- cfe/trunk/include/clang/Basic/AddressSpaces.h (original) +++ cfe/trunk/include/clang/Basic/AddressSpaces.h Mon Jan 22 21:50:06 2018 @@ -24,7 +24,7 @@ namespace clang { /// of QualType. /// enum class LangAS : unsigned { - // The default value 0 is the value used in QualType for the the situation + // The default value 0 is the value used in QualType for the situation // where there is no address space qualifier. Default = 0, Modified: cfe/trunk/include/clang/CodeGen/ConstantInitBuilder.h URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/CodeGen/ConstantInitBuilder.h?rev=323177&r1=323176&r2=323177&view=diff == --- cfe/trunk/include/clang/CodeGen/ConstantInitBuilder.h (original) +++ cfe/trunk/include/clang/CodeGen/ConstantInitBuilder.h Mon Jan 22 21:50:06 2018 @@ -295,7 +295,7 @@ public: slot = value; } - /// Produce an address which will eventually point to the the next + /// Produce an address which will eventually point to the next /// position to be filled. This is computed with an indexed /// getelementptr rather than by computing offsets. /// Modified: cfe/trunk/include/clang/StaticAnalyzer/Checkers/Checkers.td URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/StaticAnalyzer/Checkers/Checkers.td?rev=323177&r1=323176&r2=323177&view=diff == --- cfe/trunk/include/clang/StaticAnalyzer/Checkers/Checkers.td (original) +++ cfe/trunk/include/clang/StaticAnalyzer/Checkers/Checkers.td Mon Jan 22 21:50:06 2018 @@ -86,7 +86,7 @@ def LLVM : Package<"llvm">; // The APIModeling package is for checkers that model APIs and don't perform // any diagnostics. These checkers are always turned on; this package is -// intended for API modeling that is not controlled by the the target triple. +// intended for API modeling that is not controlled by the target triple. def APIModeling : Package<"apiModeling">, Hidden; def GoogleAPIModeling : Package<"google">, InPackage; Modified: cfe/trunk/include/clang/Tooling/Refactoring/Rename/RenamingAction.h URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Tooling/Refactoring/Rename/RenamingAction.h?rev=323177&r1=323176&r2=323177&view=diff == --- cfe/trunk/include/clang/Tooling/Refactoring/Rename/RenamingAction.h (original) +++ cfe/trunk/include/clang/Tooling/Refactoring/Rename/RenamingAction.h Mon Jan 22 21:50:06 2018 @@ -82,7 +82,7 @@ private: Expected createSourceReplacements(RefactoringRuleContext &Context) override; - // A NamedDecl which indentifies the the symbol being renamed. + // A NamedDecl which indentifies the symbol being renamed. const NamedDecl *ND; // The new qualified name to change the symbol to. std::string NewQualifiedName; ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
r323509 - [NFC] fix trivial typos in comments and documents
Author: inouehrs Date: Fri Jan 26 00:15:52 2018 New Revision: 323509 URL: http://llvm.org/viewvc/llvm-project?rev=323509&view=rev Log: [NFC] fix trivial typos in comments and documents "in in" -> "in", "on on" -> "on" etc. Modified: cfe/trunk/docs/InternalsManual.rst cfe/trunk/docs/doxygen.cfg.in cfe/trunk/include/clang/AST/OpenMPClause.h cfe/trunk/include/clang/Frontend/SerializedDiagnosticPrinter.h cfe/trunk/include/clang/Lex/HeaderSearch.h cfe/trunk/include/clang/Lex/MultipleIncludeOpt.h cfe/trunk/lib/CodeGen/CGObjC.cpp cfe/trunk/lib/StaticAnalyzer/Checkers/CheckObjCDealloc.cpp cfe/trunk/test/Analysis/temporaries.cpp Modified: cfe/trunk/docs/InternalsManual.rst URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/docs/InternalsManual.rst?rev=323509&r1=323508&r2=323509&view=diff == --- cfe/trunk/docs/InternalsManual.rst (original) +++ cfe/trunk/docs/InternalsManual.rst Fri Jan 26 00:15:52 2018 @@ -1823,7 +1823,7 @@ Note that setting this member to 1 will handling, requiring extra implementation efforts to ensure the attribute appertains to the appropriate subject, etc. -If the attribute should not be propagated from from a template declaration to an +If the attribute should not be propagated from a template declaration to an instantiation of the template, set the ``Clone`` member to 0. By default, all attributes will be cloned to template instantiations. Modified: cfe/trunk/docs/doxygen.cfg.in URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/docs/doxygen.cfg.in?rev=323509&r1=323508&r2=323509&view=diff == --- cfe/trunk/docs/doxygen.cfg.in (original) +++ cfe/trunk/docs/doxygen.cfg.in Fri Jan 26 00:15:52 2018 @@ -284,7 +284,7 @@ MARKDOWN_SUPPORT = YES # When enabled doxygen tries to link words that correspond to documented # classes, or namespaces to their corresponding documentation. Such a link can -# be prevented in individual cases by by putting a % sign in front of the word +# be prevented in individual cases by putting a % sign in front of the word # or globally by setting AUTOLINK_SUPPORT to NO. # The default value is: YES. Modified: cfe/trunk/include/clang/AST/OpenMPClause.h URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/OpenMPClause.h?rev=323509&r1=323508&r2=323509&view=diff == --- cfe/trunk/include/clang/AST/OpenMPClause.h (original) +++ cfe/trunk/include/clang/AST/OpenMPClause.h Fri Jan 26 00:15:52 2018 @@ -3902,7 +3902,7 @@ public: OpenMPMapClauseKind Type, bool TypeIsImplicit, SourceLocation TypeLoc); - /// \brief Creates an empty clause with the place for for \a NumVars original + /// \brief Creates an empty clause with the place for \a NumVars original /// expressions, \a NumUniqueDeclarations declarations, \NumComponentLists /// lists, and \a NumComponents expression components. /// Modified: cfe/trunk/include/clang/Frontend/SerializedDiagnosticPrinter.h URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Frontend/SerializedDiagnosticPrinter.h?rev=323509&r1=323508&r2=323509&view=diff == --- cfe/trunk/include/clang/Frontend/SerializedDiagnosticPrinter.h (original) +++ cfe/trunk/include/clang/Frontend/SerializedDiagnosticPrinter.h Fri Jan 26 00:15:52 2018 @@ -29,7 +29,7 @@ namespace serialized_diags { /// a bitcode file. /// /// The created DiagnosticConsumer is designed for quick and lightweight -/// transfer of of diagnostics to the enclosing build system (e.g., an IDE). +/// transfer of diagnostics to the enclosing build system (e.g., an IDE). /// This allows wrapper tools for Clang to get diagnostics from Clang /// (via libclang) without needing to parse Clang's command line output. /// Modified: cfe/trunk/include/clang/Lex/HeaderSearch.h URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Lex/HeaderSearch.h?rev=323509&r1=323508&r2=323509&view=diff == --- cfe/trunk/include/clang/Lex/HeaderSearch.h (original) +++ cfe/trunk/include/clang/Lex/HeaderSearch.h Fri Jan 26 00:15:52 2018 @@ -416,7 +416,7 @@ public: return FrameworkMap[FWName]; } - /// \brief Mark the specified file as a target of of a \#include, + /// \brief Mark the specified file as a target of a \#include, /// \#include_next, or \#import directive. /// /// \return false if \#including the file will have no effect or true Modified: cfe/trunk/include/clang/Lex/MultipleIncludeOpt.h URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Lex/MultipleIncludeOpt.h?rev=323509&r1=323508&r2=323509&view=diff ==
r323627 - [NFC] fix trivial typos in comments
Author: inouehrs Date: Sun Jan 28 21:15:18 2018 New Revision: 323627 URL: http://llvm.org/viewvc/llvm-project?rev=323627&view=rev Log: [NFC] fix trivial typos in comments "to to" -> "to" Modified: cfe/trunk/lib/Headers/opencl-c.h cfe/trunk/test/Driver/cl-pch-search.cpp cfe/trunk/tools/clang-offload-bundler/ClangOffloadBundler.cpp Modified: cfe/trunk/lib/Headers/opencl-c.h URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Headers/opencl-c.h?rev=323627&r1=323626&r2=323627&view=diff == --- cfe/trunk/lib/Headers/opencl-c.h (original) +++ cfe/trunk/lib/Headers/opencl-c.h Sun Jan 28 21:15:18 2018 @@ -12862,7 +12862,7 @@ void __ovld mem_fence(cl_mem_fence_flags * Read memory barrier that orders only * loads. * The flags argument specifies the memory - * address space and can be set to to a + * address space and can be set to a * combination of the following literal * values: * CLK_LOCAL_MEM_FENCE @@ -12874,7 +12874,7 @@ void __ovld read_mem_fence(cl_mem_fence_ * Write memory barrier that orders only * stores. * The flags argument specifies the memory - * address space and can be set to to a + * address space and can be set to a * combination of the following literal * values: * CLK_LOCAL_MEM_FENCE Modified: cfe/trunk/test/Driver/cl-pch-search.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/cl-pch-search.cpp?rev=323627&r1=323626&r2=323627&view=diff == --- cfe/trunk/test/Driver/cl-pch-search.cpp (original) +++ cfe/trunk/test/Driver/cl-pch-search.cpp Sun Jan 28 21:15:18 2018 @@ -2,5 +2,5 @@ // command-line option, e.g. on Mac where %s is commonly under /Users. // REQUIRES: x86-registered-target -// Check that pchfile.h next to to pchfile.cc is found correctly. +// Check that pchfile.h next to pchfile.cc is found correctly. // RUN: %clang_cl -Werror --target=x86_64-windows /Ycpchfile.h /FIpchfile.h /c /Fo%t.obj /Fp%t.pch -- %S/Inputs/pchfile.cpp Modified: cfe/trunk/tools/clang-offload-bundler/ClangOffloadBundler.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/clang-offload-bundler/ClangOffloadBundler.cpp?rev=323627&r1=323626&r2=323627&view=diff == --- cfe/trunk/tools/clang-offload-bundler/ClangOffloadBundler.cpp (original) +++ cfe/trunk/tools/clang-offload-bundler/ClangOffloadBundler.cpp Sun Jan 28 21:15:18 2018 @@ -412,7 +412,7 @@ class ObjectFileHandler final : public F /// read from the buffers. unsigned NumberOfProcessedInputs = 0; - /// LLVM context used to to create the auxiliary modules. + /// LLVM context used to create the auxiliary modules. LLVMContext VMContext; /// LLVM module used to create an object with all the bundle ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits