Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve DiffRequest and DynamicGraph printing. #1183

Merged
merged 1 commit into from
Dec 23, 2024

Conversation

vgvassilev
Copy link
Owner

No description provided.

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

include/clad/Differentiator/DiffPlanner.h Show resolved Hide resolved
include/clad/Differentiator/DiffPlanner.h Show resolved Hide resolved
include/clad/Differentiator/DynamicGraph.h Outdated Show resolved Hide resolved
/// Print the nodes and edges in the graph.
void print() {
void print(llvm::raw_ostream& Out) const {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: use of undeclared identifier 'llvm' [clang-diagnostic-error]

  void print(llvm::raw_ostream& Out) const {
             ^

lib/Differentiator/DiffPlanner.cpp Show resolved Hide resolved
lib/Differentiator/DiffPlanner.cpp Show resolved Hide resolved
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

#include "clang/AST/RecursiveASTVisitor.h"

#include "llvm/ADT/SmallSet.h"
#include <llvm/Support/raw_ostream.h>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: included header SmallSet.h is not used directly [misc-include-cleaner]

Suggested change
#include <llvm/Support/raw_ostream.h>
#include <llvm/Support/raw_ostream.h>

@vgvassilev vgvassilev force-pushed the improve-graph-print branch 3 times, most recently from bb87743 to b1934fe Compare December 23, 2024 08:32
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

include/clad/Differentiator/DynamicGraph.h Show resolved Hide resolved
tools/ClangPlugin.cpp Show resolved Hide resolved
@vgvassilev vgvassilev force-pushed the improve-graph-print branch 2 times, most recently from f9b28cf to c5f787b Compare December 23, 2024 08:48
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

#include "FunctionTraits.h"
#include "Matrix.h"
#include "NumericalDiff.h"
#include "Tape.h"

#include <array>
#include <assert.h>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: included header array is not used directly [misc-include-cleaner]

Suggested change
#include <assert.h>
#include <assert.h>

Copy link

codecov bot commented Dec 23, 2024

Codecov Report

Attention: Patch coverage is 96.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 94.85%. Comparing base (36dbc6e) to head (1a55b91).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
include/clad/Differentiator/DynamicGraph.h 87.50% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1183      +/-   ##
==========================================
+ Coverage   94.56%   94.85%   +0.28%     
==========================================
  Files          51       51              
  Lines        8960     8972      +12     
==========================================
+ Hits         8473     8510      +37     
+ Misses        487      462      -25     
Files with missing lines Coverage Δ
include/clad/Differentiator/DiffPlanner.h 100.00% <100.00%> (+31.81%) ⬆️
lib/Differentiator/DiffPlanner.cpp 98.48% <100.00%> (+0.04%) ⬆️
tools/ClangPlugin.cpp 96.09% <100.00%> (ø)
include/clad/Differentiator/DynamicGraph.h 98.24% <87.50%> (+14.03%) ⬆️

... and 1 file with indirect coverage changes

Files with missing lines Coverage Δ
include/clad/Differentiator/DiffPlanner.h 100.00% <100.00%> (+31.81%) ⬆️
lib/Differentiator/DiffPlanner.cpp 98.48% <100.00%> (+0.04%) ⬆️
tools/ClangPlugin.cpp 96.09% <100.00%> (ø)
include/clad/Differentiator/DynamicGraph.h 98.24% <87.50%> (+14.03%) ⬆️

... and 1 file with indirect coverage changes

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

include/clad/Differentiator/Differentiator.h Outdated Show resolved Hide resolved
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

include/clad/Differentiator/Differentiator.h Show resolved Hide resolved
@vgvassilev vgvassilev merged commit 9f245ce into master Dec 23, 2024
92 checks passed
@vgvassilev vgvassilev deleted the improve-graph-print branch December 23, 2024 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant