Changeset View
Changeset View
Standalone View
Standalone View
clang/lib/Serialization/ASTReader.cpp
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
//===- ASTReader.cpp - AST File Reader ------------------------------------===// | //===- ASTReader.cpp - AST File Reader ------------------------------------===// | ||||
Lint: Lint: clang-format not found in user's PATH; not linting file. | |||||
// | // | ||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||||
// See https://llvm.org/LICENSE.txt for license information. | // See https://llvm.org/LICENSE.txt for license information. | ||||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||||
// | // | ||||
//===----------------------------------------------------------------------===// | //===----------------------------------------------------------------------===// | ||||
// | // | ||||
▲ Show 20 Lines • Show All 11,740 Lines • ▼ Show 20 Lines | case llvm::omp::OMPC_num_threads: | ||||
C = new (Context) OMPNumThreadsClause(); | C = new (Context) OMPNumThreadsClause(); | ||||
break; | break; | ||||
case llvm::omp::OMPC_safelen: | case llvm::omp::OMPC_safelen: | ||||
C = new (Context) OMPSafelenClause(); | C = new (Context) OMPSafelenClause(); | ||||
break; | break; | ||||
case llvm::omp::OMPC_simdlen: | case llvm::omp::OMPC_simdlen: | ||||
C = new (Context) OMPSimdlenClause(); | C = new (Context) OMPSimdlenClause(); | ||||
break; | break; | ||||
case llvm::omp::OMPC_sizes: { | |||||
unsigned NumSizes = Record.readInt(); | |||||
C = OMPSizesClause::CreateEmpty(Context, NumSizes); | |||||
break; | |||||
} | |||||
case llvm::omp::OMPC_allocator: | case llvm::omp::OMPC_allocator: | ||||
C = new (Context) OMPAllocatorClause(); | C = new (Context) OMPAllocatorClause(); | ||||
break; | break; | ||||
case llvm::omp::OMPC_collapse: | case llvm::omp::OMPC_collapse: | ||||
C = new (Context) OMPCollapseClause(); | C = new (Context) OMPCollapseClause(); | ||||
break; | break; | ||||
case llvm::omp::OMPC_default: | case llvm::omp::OMPC_default: | ||||
C = new (Context) OMPDefaultClause(); | C = new (Context) OMPDefaultClause(); | ||||
▲ Show 20 Lines • Show All 273 Lines • ▼ Show 20 Lines | void OMPClauseReader::VisitOMPSafelenClause(OMPSafelenClause *C) { | ||||
C->setLParenLoc(Record.readSourceLocation()); | C->setLParenLoc(Record.readSourceLocation()); | ||||
} | } | ||||
void OMPClauseReader::VisitOMPSimdlenClause(OMPSimdlenClause *C) { | void OMPClauseReader::VisitOMPSimdlenClause(OMPSimdlenClause *C) { | ||||
C->setSimdlen(Record.readSubExpr()); | C->setSimdlen(Record.readSubExpr()); | ||||
C->setLParenLoc(Record.readSourceLocation()); | C->setLParenLoc(Record.readSourceLocation()); | ||||
} | } | ||||
void OMPClauseReader::VisitOMPSizesClause(OMPSizesClause *C) { | |||||
for (auto &E : C->getSizesRefs()) | |||||
E = Record.readSubExpr(); | |||||
C->setLParenLoc(Record.readSourceLocation()); | |||||
} | |||||
void OMPClauseReader::VisitOMPAllocatorClause(OMPAllocatorClause *C) { | void OMPClauseReader::VisitOMPAllocatorClause(OMPAllocatorClause *C) { | ||||
C->setAllocator(Record.readExpr()); | C->setAllocator(Record.readExpr()); | ||||
C->setLParenLoc(Record.readSourceLocation()); | C->setLParenLoc(Record.readSourceLocation()); | ||||
} | } | ||||
void OMPClauseReader::VisitOMPCollapseClause(OMPCollapseClause *C) { | void OMPClauseReader::VisitOMPCollapseClause(OMPCollapseClause *C) { | ||||
C->setNumForLoops(Record.readSubExpr()); | C->setNumForLoops(Record.readSubExpr()); | ||||
C->setLParenLoc(Record.readSourceLocation()); | C->setLParenLoc(Record.readSourceLocation()); | ||||
▲ Show 20 Lines • Show All 871 Lines • Show Last 20 Lines |
clang-format not found in user's PATH; not linting file.