]> granicus.if.org Git - clang/commitdiff
Change 'Wchar' to 'WChar' casing, for consistency.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Sat, 9 Aug 2008 17:20:01 +0000 (17:20 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Sat, 9 Aug 2008 17:20:01 +0000 (17:20 +0000)
No functionality change.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54588 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/ASTContext.h
lib/AST/ASTContext.cpp
lib/Sema/SemaExpr.cpp

index 1d4c2a351af17ca14230d2e434d338852416860d..0959b059ee2b6c436dcf3c027ad8b5d624bd6566 100644 (file)
@@ -234,9 +234,9 @@ public:
   /// in <stddef.h>. 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 <stddef.h>. 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.
index fef85b540c25cfdaf1a7a2264d1729824d0dd018..a20236f9eb5d430e6b88221bbd1c43983cb31f34 100644 (file)
@@ -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 <stddef.h>.
-QualType ASTContext::getWcharType() const {
+QualType ASTContext::getWCharType() const {
   if (LangOpts.CPlusPlus)
     return WCharTy;
 
index 8896f43539091ef2c9d1f2318a4761d4c6825b72..2982c45865e8c3508f814ce77575719b8202ba94 100644 (file)
@@ -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