/usr/include/clang/Sema/MultiInitializer.h is in libclang-dev 3.0-6ubuntu3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 | //===--- MultiInitializer.h - Initializer expression group ------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// This file defines the MultiInitializer class, which can represent a list
// initializer or a parentheses-wrapped group of expressions in a C++ member
// initializer.
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_CLANG_SEMA_MULTIINITIALIZER_H
#define LLVM_CLANG_SEMA_MULTIINITIALIZER_H
#include "clang/Sema/Ownership.h"
#include "clang/Basic/SourceLocation.h"
#include "llvm/ADT/PointerUnion.h"
namespace clang {
class ASTContext;
class Expr;
class InitializationKind;
class InitializedEntity;
class InitListExpr;
class Sema;
class MultiInitializer {
llvm::PointerUnion<Expr*, Expr**> InitListOrExpressions;
unsigned NumInitializers;
SourceLocation LParenLoc;
SourceLocation RParenLoc;
InitListExpr *getInitList() const;
Expr **getExpressions() const { return InitListOrExpressions.get<Expr**>(); }
public:
MultiInitializer(Expr* InitList)
: InitListOrExpressions(InitList)
{}
MultiInitializer(SourceLocation LParenLoc, Expr **Exprs, unsigned NumInits,
SourceLocation RParenLoc)
: InitListOrExpressions(Exprs), NumInitializers(NumInits),
LParenLoc(LParenLoc), RParenLoc(RParenLoc)
{}
bool isInitializerList() const { return InitListOrExpressions.is<Expr*>(); }
SourceLocation getStartLoc() const;
SourceLocation getEndLoc() const;
typedef Expr **iterator;
iterator begin() const;
iterator end() const;
bool isTypeDependent() const;
bool DiagnoseUnexpandedParameterPack(Sema &SemaRef) const;
// Return the InitListExpr or create a ParenListExpr.
Expr *CreateInitExpr(ASTContext &Ctx, QualType T) const;
ExprResult PerformInit(Sema &SemaRef, InitializedEntity Entity,
InitializationKind Kind) const;
};
}
#endif
|