[cfe-commits] r54588 - in /cfe/trunk: include/clang/AST/ASTContext.h lib/AST/ASTContext.cpp lib/Sema/SemaExpr.cpp
Argiris Kirtzidis
akyrtzi at gmail.com
Sat Aug 9 10:20:01 PDT 2008
Author: akirtzidis
Date: Sat Aug 9 12:20:01 2008
New Revision: 54588
URL: http://llvm.org/viewvc/llvm-project?rev=54588&view=rev
Log:
Change 'Wchar' to 'WChar' casing, for consistency.
No functionality change.
Modified:
cfe/trunk/include/clang/AST/ASTContext.h
cfe/trunk/lib/AST/ASTContext.cpp
cfe/trunk/lib/Sema/SemaExpr.cpp
Modified: cfe/trunk/include/clang/AST/ASTContext.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/ASTContext.h?rev=54588&r1=54587&r2=54588&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/ASTContext.h (original)
+++ cfe/trunk/include/clang/AST/ASTContext.h Sat Aug 9 12:20:01 2008
@@ -234,9 +234,9 @@
/// 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.
Modified: cfe/trunk/lib/AST/ASTContext.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/ASTContext.cpp?rev=54588&r1=54587&r2=54588&view=diff
==============================================================================
--- cfe/trunk/lib/AST/ASTContext.cpp (original)
+++ cfe/trunk/lib/AST/ASTContext.cpp Sat Aug 9 12:20:01 2008
@@ -999,10 +999,10 @@
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;
Modified: cfe/trunk/lib/Sema/SemaExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaExpr.cpp?rev=54588&r1=54587&r2=54588&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaExpr.cpp (original)
+++ cfe/trunk/lib/Sema/SemaExpr.cpp Sat Aug 9 12:20:01 2008
@@ -285,7 +285,7 @@
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
More information about the cfe-commits
mailing list