diff options
-rw-r--r-- | lib/Sema/CMakeLists.txt | 2 | ||||
-rw-r--r-- | lib/Sema/SemaCast.cpp (renamed from lib/Sema/SemaCXXCast.cpp) | 7 |
2 files changed, 6 insertions, 3 deletions
diff --git a/lib/Sema/CMakeLists.txt b/lib/Sema/CMakeLists.txt index 4ff92b1875..dbbb980de8 100644 --- a/lib/Sema/CMakeLists.txt +++ b/lib/Sema/CMakeLists.txt @@ -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 diff --git a/lib/Sema/SemaCXXCast.cpp b/lib/Sema/SemaCast.cpp index 1f386388be..df9ef4f5bc 100644 --- a/lib/Sema/SemaCXXCast.cpp +++ b/lib/Sema/SemaCast.cpp @@ -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)' // //===----------------------------------------------------------------------===// |