//===--- SemaChecking.cpp - Extra Semantic Checking -----------------------===////// The LLVM Compiler Infrastructure//// This file is distributed under the University of Illinois Open Source// License. See LICENSE.TXT for details.////===----------------------------------------------------------------------===////// This file implements extra semantic analysis beyond what is enforced// by the C type system.////===----------------------------------------------------------------------===//#include"Sema.h"#include"clang/AST/ASTContext.h"#include"clang/AST/DeclObjC.h"#include"clang/AST/ExprCXX.h"#include"clang/AST/ExprObjC.h"#include"clang/Lex/LiteralSupport.h"#include"clang/Lex/Preprocessor.h"#include<limits>usingnamespaceclang;/// getLocationOfStringLiteralByte - Return a source location that points to the/// specified byte of the specified string literal.////// Strings are amazingly complex. They can be formed from multiple tokens and/// can have escape sequences in them in addition to the usual trigraph and/// escaped newline business. This routine handles this complexity.///SourceLocationSema::getLocationOfStringLiteralByte(constStringLiteral*SL,unsignedByteNo)const{assert(!SL->isWide