Changeset View
Changeset View
Standalone View
Standalone View
clang/lib/Frontend/CompilerInvocation.cpp
//===- CompilerInvocation.cpp ---------------------------------------------===// | //===- CompilerInvocation.cpp ---------------------------------------------===// | ||||
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 3,163 Lines • ▼ Show 20 Lines | for (unsigned i = 0; i < A->getNumValues(); ++i) { | ||||
if (TT.getArch() == llvm::Triple::UnknownArch || | if (TT.getArch() == llvm::Triple::UnknownArch || | ||||
!(TT.getArch() == llvm::Triple::aarch64 || | !(TT.getArch() == llvm::Triple::aarch64 || | ||||
TT.getArch() == llvm::Triple::ppc || | TT.getArch() == llvm::Triple::ppc || | ||||
TT.getArch() == llvm::Triple::ppc64 || | TT.getArch() == llvm::Triple::ppc64 || | ||||
TT.getArch() == llvm::Triple::ppc64le || | TT.getArch() == llvm::Triple::ppc64le || | ||||
TT.getArch() == llvm::Triple::nvptx || | TT.getArch() == llvm::Triple::nvptx || | ||||
TT.getArch() == llvm::Triple::nvptx64 || | TT.getArch() == llvm::Triple::nvptx64 || | ||||
TT.getArch() == llvm::Triple::amdgcn || | TT.getArch() == llvm::Triple::amdgcn || | ||||
TT.getArch() == llvm::Triple::ve || | |||||
TT.getArch() == llvm::Triple::x86 || | TT.getArch() == llvm::Triple::x86 || | ||||
TT.getArch() == llvm::Triple::x86_64)) | TT.getArch() == llvm::Triple::x86_64)) | ||||
Diags.Report(diag::err_drv_invalid_omp_target) << A->getValue(i); | Diags.Report(diag::err_drv_invalid_omp_target) << A->getValue(i); | ||||
else | else | ||||
Opts.OMPTargetTriples.push_back(TT); | Opts.OMPTargetTriples.push_back(TT); | ||||
} | } | ||||
} | } | ||||
▲ Show 20 Lines • Show All 823 Lines • Show Last 20 Lines |
clang-format not found in user's PATH; not linting file.