mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-26 03:46:07 +00:00

entities in the preprocessing record. Previously, we would only end up getting the first token of a preprocessing record annotated correctly. For example, given #include "foo.h" we would only get the '#' annotated as an inclusion directive; the 'include' and '"foo.h"' tokens would be given the general 'processing directive' annotation. Now, we get proper annotations for entities in the preprocessing record. llvm-svn: 117001
8 lines
395 B
C
8 lines
395 B
C
#include "annotate-tokens-include.h"
|
|
|
|
// RUN: c-index-test -test-annotate-tokens=%s:1:1:2:1 %s | FileCheck %s
|
|
// CHECK: Punctuation: "#" [1:1 - 1:2] inclusion directive=annotate-tokens-include.h
|
|
// CHECK: Identifier: "include" [1:2 - 1:9] inclusion directive=annotate-tokens-include.h
|
|
// CHECK: Literal: ""annotate-tokens-include.h"" [1:10 - 1:37] inclusion directive=annotate-tokens-include.h
|
|
|