forked from RobotLocomotion/drake
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor symbolic expression / formula (RobotLocomotion#14020)
* Refactor symbolic expression / formula - Adds [[nodiscard]] attributes to member functions in order to highlight at compile time which return values should not be ignored. Update the affected test cases. - Make deleted methods public so that a compiler can give a proper warning (delete method). Otherwise, a compiler indicates that the method is private. - modernize-pass-by-value. Read our C++ guideline, https://drake.mit.edu/styleguide/cppguide.html#Pass_By_Value - `auto&` => `const auto&` in for-loop - Remove redundant declarations in symbolic_{expression,formula}_cell.h as they are already in symbolic_{expression,formula}.h
- Loading branch information
1 parent
ced22cb
commit 9c30d5b
Showing
10 changed files
with
449 additions
and
775 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.