-
Notifications
You must be signed in to change notification settings - Fork 14
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
Symbolic links in DebugLoc.File
paths may have unexpected effects
#24
Comments
@abbriggs good catches and good solution direction - thanks. Will look into it soon. |
@abbriggs my commit name caused github to automatically close this. Can you please try the latest scripts and verify that it is solved for you? |
Both problems discussed in the issue body appear to be correct now - the remarks across multiple uses of the same header look like they're in the same file. The commit does introduce an issue with remark processing, though:
Likely due to these changes:
Indeed, if I change directory to my source dir before running
I think it could be resolved if we could do something like:
But |
@abbriggs Sorry for the delay - this was reproduced and should now be fixed by applying |
Unfortunately, the aforementioned issue does not seem to be fixed for me. Here's what my command line looks like:
Unless I change directory to the |
I apologize, my attempts at this were careless and caused the scripts to break - now reverted to working condition. I will take a stab at this with a different approach in the near future. |
The
DebugLoc
for a optimization record is created from several sources:#include
d file#include
and how the include directories are specified by the makefiles.Both of these may include
.
and..
in their paths.Working with a few projects, I've noticed a couple of minor issues due to symlinks in
DebugLoc
s:DebugLoc.File
that begins with.
, the HTML file name will still contain the.
at the beginning. On Unix-like systems, this hides the HTML file from typical file explorers../common/foo.h
==>._common_foo.h.html
../dir1/foo.c
and./dir2/bar.c
both contain#include <../lib/baz.h>
. Two HTML files will be created:._dir1_.._lib_baz.h.html
and._dir2_.._lib_baz.h.html
.I think both of these could be resolved by transforming the
DebugLoc.File
into an absolute path w.r.t thesource_dir
, but I'm not sure exactly where to do so. It seems like the code partially supports dumping remarks back into YAML, and it's likely that resolving these paths would remove compatibility (since dumping back to YAML would produce absolute paths).The text was updated successfully, but these errors were encountered: