]> granicus.if.org Git - clang/commitdiff
Rename SemaCXXCast.cpp to SemaCast.cpp.
authorJohn McCall <rjmccall@apple.com>
Tue, 11 Oct 2011 17:38:55 +0000 (17:38 +0000)
committerJohn McCall <rjmccall@apple.com>
Tue, 11 Oct 2011 17:38:55 +0000 (17:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141686 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/CMakeLists.txt
lib/Sema/SemaCast.cpp [moved from lib/Sema/SemaCXXCast.cpp with 99% similarity]

index 4ff92b18758ad83d928b39c14b399a4d3d3573af..dbbb980de8509f44898025668f2e70de5cc8e110 100644 (file)
@@ -13,8 +13,8 @@ add_clang_library(clangSema
   Sema.cpp
   SemaAccess.cpp
   SemaAttr.cpp
-  SemaCXXCast.cpp
   SemaCXXScopeSpec.cpp
+  SemaCast.cpp
   SemaChecking.cpp
   SemaCodeComplete.cpp
   SemaDecl.cpp
similarity index 99%
rename from lib/Sema/SemaCXXCast.cpp
rename to lib/Sema/SemaCast.cpp
index 1f386388bef3494a91e9ec7fedb01d2658dc9f9e..df9ef4f5bccdd1b15db5f1a8d217a1656b6b1bb6 100644 (file)
@@ -1,4 +1,4 @@
-//===--- SemaCXXCast.cpp - Semantic Analysis for Casts --------------------===//
+//===--- SemaCast.cpp - Semantic Analysis for Casts -----------------------===//
 //
 //                     The LLVM Compiler Infrastructure
 //
@@ -7,7 +7,10 @@
 //
 //===----------------------------------------------------------------------===//
 //
-//  This file implements semantic analysis for casts.
+//  This file implements semantic analysis for cast expressions, including
+//  1) C-style casts like '(int) x'
+//  2) C++ functional casts like 'int(x)'
+//  3) C++ named casts like 'static_cast<int>(x)'
 //
 //===----------------------------------------------------------------------===//