-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathplugin.cpp
More file actions
17 lines (15 loc) · 790 Bytes
/
Copy pathplugin.cpp
File metadata and controls
17 lines (15 loc) · 790 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//===- PrintFunctionNames.cpp ---------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
//
// Example clang plugin which simply prints the names of all the top-level decls
// in the input file.
//
//===----------------------------------------------------------------------===//
#include <mp_ast/mp_plugin_action.h>
static clang::FrontendPluginRegistry::Add<mp::mp_plugin_action>
X("mp_instrument_dtors", "Instrument destructors to save information about the current object, captured during profiling");