summaryrefslogtreecommitdiffstats
path: root/clang/Lex/MacroInfo.cpp
blob: 267325bf8f35dfbcbfa69c80db2b427e613940a7 (plain)
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
//===--- MacroInfo.cpp - Information about #defined identifiers -----------===//
//
//                     The LLVM Compiler Infrastructure
//
// This file was developed by Chris Lattner and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// This file implements the MacroInfo interface.
//
//===----------------------------------------------------------------------===//

#include "clang/Lex/MacroInfo.h"
#include <iostream>
using namespace llvm;
using namespace clang;

/// dump - Print the macro to stderr, used for debugging.
///
void MacroInfo::dump(const LangOptions &Features) const {
  std::cerr << "MACRO: ";
  for (unsigned i = 0, e = ReplacementTokens.size(); i != e; ++i) {
    ReplacementTokens[i].dump(Features);
    std::cerr << "  ";
  }
  std::cerr << "\n";
}
OpenPOWER on IntegriCloud