This is an archive of the discontinued LLVM Phabricator instance.

[ASTMatchers] Add cxxNoexceptExpr AST matcher
ClosedPublic

Authored by njames93 on Jan 26 2020, 5:23 PM.

Details

Summary

Adds a cxxNoexceptExpr matcher that matches the noexcept operator.

Diff Detail

Event Timeline

njames93 created this revision.Jan 26 2020, 5:23 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 26 2020, 5:23 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript

Unit tests: pass. 62196 tests passed, 0 failed and 815 were skipped.

clang-tidy: pass.

clang-format: pass.

Build artifacts: diff.json, clang-tidy.txt, clang-format.patch, CMakeCache.txt, console-log.txt, test-results.xml

Pre-merge checks is in beta. Report issue. Please join beta or enable it for your project.

njames93 updated this revision to Diff 240461.Jan 26 2020, 5:47 PM
  • Fix typo in documentation

Unit tests: pass. 62196 tests passed, 0 failed and 815 were skipped.

clang-tidy: pass.

clang-format: pass.

Build artifacts: diff.json, clang-tidy.txt, clang-format.patch, CMakeCache.txt, console-log.txt, test-results.xml

Pre-merge checks is in beta. Report issue. Please join beta or enable it for your project.

aaron.ballman accepted this revision.Jan 27 2020, 7:22 AM

LGTM aside from some minor nits.

clang/include/clang/ASTMatchers/ASTMatchers.h
1831

typo -- noexcept

1835

Can you also add this as an example:

void func() noexcept(noexcept(1 + 1));

to make it clear that this matches noexcept(1 + 1) but not noexcept(noexcept(...))?

This revision is now accepted and ready to land.Jan 27 2020, 7:22 AM
njames93 updated this revision to Diff 240640.Jan 27 2020, 10:48 AM
  • Tweak documentation
njames93 marked an inline comment as done.Jan 27 2020, 10:49 AM

Unit tests: pass. 62196 tests passed, 0 failed and 815 were skipped.

clang-tidy: pass.

clang-format: pass.

Build artifacts: diff.json, clang-tidy.txt, clang-format.patch, CMakeCache.txt, console-log.txt, test-results.xml

Pre-merge checks is in beta. Report issue. Please join beta or enable it for your project.

This revision was automatically updated to reflect the committed changes.