From d8d3ced6f5d7fa55272194b7165a2321a3be31dc Mon Sep 17 00:00:00 2001 From: John McCall Date: Tue, 11 Oct 2011 17:38:55 +0000 Subject: [PATCH] Rename SemaCXXCast.cpp to SemaCast.cpp. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141686 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Sema/CMakeLists.txt | 2 +- lib/Sema/{SemaCXXCast.cpp => SemaCast.cpp} | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) rename lib/Sema/{SemaCXXCast.cpp => SemaCast.cpp} (99%) 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 similarity index 99% rename from lib/Sema/SemaCXXCast.cpp rename to 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(x)' // //===----------------------------------------------------------------------===// -- 2.50.1