Commit 26acb3f484a316312494712f7bb7b38f927c27b4
Filter out prefix unary operators
Author: xaizek
Author date (UTC): 2014-03-23 21:58
Committer name: xaizek
Committer date (UTC): 2014-03-23 21:58
Parent(s): ea54ae2283a420605364476af59446a4dc82822f
Signing key:
Tree: 90eeb275ec0d19eb58109454b2f69483bb6cace6
File for-postfix.cpp changed (mode: 100644) (index 2eb68ca..36d62e6) |
... |
... |
public: |
33 |
33 |
typedef UnaryOperator UnOp; |
typedef UnaryOperator UnOp; |
34 |
34 |
|
|
35 |
35 |
if (const UnOp *op = result.Nodes.getNodeAs<UnOp>("op")) { |
if (const UnOp *op = result.Nodes.getNodeAs<UnOp>("op")) { |
36 |
|
op->dump(); |
|
37 |
|
std::cout << '\n'; |
|
|
36 |
|
if (op->isPostfix()) { |
|
37 |
|
op->dump(); |
|
38 |
|
std::cout << '\n'; |
|
39 |
|
} |
38 |
40 |
} |
} |
39 |
41 |
} |
} |
40 |
42 |
}; |
}; |