Changeset View
Changeset View
Standalone View
Standalone View
clang/lib/Analysis/CFG.cpp
//===- CFG.cpp - Classes for representing and building CFGs ---------------===// | //===- CFG.cpp - Classes for representing and building CFGs ---------------===// | ||||
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 4,904 Lines • ▼ Show 20 Lines | SmallVector<Stmt *, 8> Used( | ||||
OMPExecutableDirective::used_clauses_children(D->clauses())); | OMPExecutableDirective::used_clauses_children(D->clauses())); | ||||
for (Stmt *S : llvm::reverse(Used)) { | for (Stmt *S : llvm::reverse(Used)) { | ||||
assert(S && "Expected non-null used-in-clause child."); | assert(S && "Expected non-null used-in-clause child."); | ||||
if (CFGBlock *R = Visit(S)) | if (CFGBlock *R = Visit(S)) | ||||
B = R; | B = R; | ||||
} | } | ||||
// Visit associated structured block if any. | // Visit associated structured block if any. | ||||
if (!D->isStandaloneDirective()) | if (!D->isStandaloneDirective()) | ||||
if (CapturedStmt *CS = D->getInnermostCapturedStmt()) { | if (Stmt *S = D->ignoreCaptures()) { | ||||
Stmt *S = CS->getCapturedStmt(); | |||||
if (!isa<CompoundStmt>(S)) | if (!isa<CompoundStmt>(S)) | ||||
addLocalScopeAndDtors(S); | addLocalScopeAndDtors(S); | ||||
if (CFGBlock *R = addStmt(S)) | if (CFGBlock *R = addStmt(S)) | ||||
B = R; | B = R; | ||||
} | } | ||||
return B; | return B; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 1,135 Lines • Show Last 20 Lines |
clang-format not found in user's PATH; not linting file.