aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/ARM/Disassembler/ARMDisassembler.cpp
diff options
context:
space:
mode:
authorMartin Probst <martin@probst.io>2017-08-08 15:00:58 +0000
committerMartin Probst <martin@probst.io>2017-08-08 15:00:58 +0000
commit0fb46bb222dc55a8233044744f6045f185b678c3 (patch)
tree5d7cf596e152104ab8a6154300fdb298570453b6 /llvm/lib/Target/ARM/Disassembler/ARMDisassembler.cpp
parentf1a6552a95ef359317405b6b905e452c0577d22c (diff)
downloadllvm-0fb46bb222dc55a8233044744f6045f185b678c3.zip
llvm-0fb46bb222dc55a8233044744f6045f185b678c3.tar.gz
llvm-0fb46bb222dc55a8233044744f6045f185b678c3.tar.bz2
clang-format: [JS] fix union type spacing in object & array types.
Summary: Previously, clang-format would insert whitespace in union types nested in object and array types, as it wouldn't recognize those as a type operator: const x: {foo: number | null}; const x: [number | null]; While this is correct for actual binary operators, clang-format should not insert whitespace into union and intersection types to mark those: const x: {foo: number|null}; const x: [number|null]; This change propagates that the context is not an expression by inspecting the preceding token and marking as non-expression if it was a type colon. Reviewers: djasper Subscribers: klimek Differential Revision: https://reviews.llvm.org/D36136 llvm-svn: 310367
Diffstat (limited to 'llvm/lib/Target/ARM/Disassembler/ARMDisassembler.cpp')
0 files changed, 0 insertions, 0 deletions