r196124 - clang-format vs plugin: use Alp's suggestion for getting the path
Hans Wennborg
hans at hanshq.net
Mon Dec 2 09:40:46 PST 2013
Author: hans
Date: Mon Dec 2 11:40:46 2013
New Revision: 196124
URL: http://llvm.org/viewvc/llvm-project?rev=196124&view=rev
Log:
clang-format vs plugin: use Alp's suggestion for getting the path
Modified:
cfe/trunk/tools/clang-format-vs/ClangFormat/ClangFormatPackage.cs
Modified: cfe/trunk/tools/clang-format-vs/ClangFormat/ClangFormatPackage.cs
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/clang-format-vs/ClangFormat/ClangFormatPackage.cs?rev=196124&r1=196123&r2=196124&view=diff
==============================================================================
--- cfe/trunk/tools/clang-format-vs/ClangFormat/ClangFormatPackage.cs (original)
+++ cfe/trunk/tools/clang-format-vs/ClangFormat/ClangFormatPackage.cs Mon Dec 2 11:40:46 2013
@@ -129,8 +129,8 @@ namespace LLVM.ClangFormat
/// </summary>
private string RunClangFormat(string text, int offset, int length, string path)
{
- string vsixPath = Path.GetDirectoryName(Uri.UnescapeDataString(
- new UriBuilder(Assembly.GetExecutingAssembly().CodeBase).Path));
+ string vsixPath = Path.GetDirectoryName(
+ typeof(ClangFormatPackage).Assembly.Location);
System.Diagnostics.Process process = new System.Diagnostics.Process();
process.StartInfo.UseShellExecute = false;
More information about the cfe-commits
mailing list