From cbad725bf4c173c9ec645b295d555c5584eca7ae Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Sat, 9 Aug 2008 17:20:01 +0000 Subject: [PATCH] Change 'Wchar' to 'WChar' casing, for consistency. No functionality change. llvm-svn: 54588 --- clang/include/clang/AST/ASTContext.h | 4 ++-- clang/lib/AST/ASTContext.cpp | 4 ++-- clang/lib/Sema/SemaExpr.cpp | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/clang/include/clang/AST/ASTContext.h b/clang/include/clang/AST/ASTContext.h index 1d4c2a351af1..0959b059ee2b 100644 --- a/clang/include/clang/AST/ASTContext.h +++ b/clang/include/clang/AST/ASTContext.h @@ -234,9 +234,9 @@ public: /// in . The sizeof operator requires this (C99 6.5.3.4p4). QualType getSizeType() const; - /// getWcharType - Return the unique type for "wchar_t" (C99 7.17), defined + /// getWCharType - Return the unique type for "wchar_t" (C99 7.17), defined /// in . Wide strings require this (C99 6.4.5p5). - QualType getWcharType() const; + QualType getWCharType() const; /// getSignedWCharType - Return the type of "signed wchar_t". /// Used when in C++, as a GCC extension. diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp index fef85b540c25..a20236f9eb5d 100644 --- a/clang/lib/AST/ASTContext.cpp +++ b/clang/lib/AST/ASTContext.cpp @@ -999,10 +999,10 @@ QualType ASTContext::getSizeType() const { return UnsignedLongTy; } -/// getWcharType - Return the unique type for "wchar_t" (C99 7.17), the +/// getWCharType - Return the unique type for "wchar_t" (C99 7.17), the /// width of characters in wide strings, The value is target dependent and /// needs to agree with the definition in . -QualType ASTContext::getWcharType() const { +QualType ASTContext::getWCharType() const { if (LangOpts.CPlusPlus) return WCharTy; diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp index 8896f4353909..2982c45865e8 100644 --- a/clang/lib/Sema/SemaExpr.cpp +++ b/clang/lib/Sema/SemaExpr.cpp @@ -285,7 +285,7 @@ Sema::ActOnStringLiteral(const Token *StringToks, unsigned NumStringToks) { StringToks[NumStringToks-1].getLocation())); QualType StrTy = Context.CharTy; - if (Literal.AnyWide) StrTy = Context.getWcharType(); + if (Literal.AnyWide) StrTy = Context.getWCharType(); if (Literal.Pascal) StrTy = Context.UnsignedCharTy; // Get an array type for the string, according to C99 6.4.5. This includes