[clang] 986e3af - Add Debug Info Size to Symbol Status

2020-07-24 Thread Walter Erquinigo via cfe-commits

Author: Yifan Shen
Date: 2020-07-24T13:26:06-07:00
New Revision: 986e3af53bfe591e88a1ae4f82ea1cc0a15819a3

URL: 
https://github.com/llvm/llvm-project/commit/986e3af53bfe591e88a1ae4f82ea1cc0a15819a3
DIFF: 
https://github.com/llvm/llvm-project/commit/986e3af53bfe591e88a1ae4f82ea1cc0a15819a3.diff

LOG: Add Debug Info Size to Symbol Status

Summary: If a module has debug info, the size of debug symbol will be displayed 
after the Symbols Loaded Message for each module in the VScode modules 
view.{F12335461}

Reviewers: wallace, clayborg

Reviewed By: wallace, clayborg

Subscribers: cfe-commits, aprantl, lldb-commits

Tags: #lldb, #clang

Differential Revision: https://reviews.llvm.org/D83731

Added: 


Modified: 
clang/tools/clang-format/git-clang-format
lldb/packages/Python/lldbsuite/test/tools/lldb-vscode/lldbvscode_testcase.py
lldb/test/API/tools/lldb-vscode/module/Makefile
lldb/test/API/tools/lldb-vscode/module/TestVSCode_module.py
lldb/tools/lldb-vscode/JSONUtils.cpp

Removed: 




diff  --git a/clang/tools/clang-format/git-clang-format 
b/clang/tools/clang-format/git-clang-format
index f3cd585e7f4a..e69de29bb2d1 100755
--- a/clang/tools/clang-format/git-clang-format
+++ b/clang/tools/clang-format/git-clang-format
@@ -1,585 +0,0 @@
-#!/usr/bin/env python
-#
-#===- git-clang-format - ClangFormat Git Integration -*- python 
-*--===#
-#
-# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
-# See https://llvm.org/LICENSE.txt for license information.
-# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-#
-#======#
-
-r"""
-clang-format git integration
-
-
-This file provides a clang-format integration for git. Put it somewhere in your
-path and ensure that it is executable. Then, "git clang-format" will invoke
-clang-format on the changes in current files or a specific commit.
-
-For further details, run:
-git clang-format -h
-
-Requires Python 2.7 or Python 3
-"""
-
-from __future__ import absolute_import, division, print_function
-import argparse
-import collections
-import contextlib
-import errno
-import os
-import re
-import subprocess
-import sys
-
-usage = 'git clang-format [OPTIONS] [] [] [--] [...]'
-
-desc = '''
-If zero or one commits are given, run clang-format on all lines that 
diff er
-between the working directory and , which defaults to HEAD.  Changes 
are
-only applied to the working directory.
-
-If two commits are given (requires --
diff ), run clang-format on all lines in the
-second  that 
diff er from the first .
-
-The following git-config settings set the default of the corresponding option:
-  clangFormat.binary
-  clangFormat.commit
-  clangFormat.extensions
-  clangFormat.style
-'''
-
-# Name of the temporary index file in which save the output of clang-format.
-# This file is created within the .git directory.
-temp_index_basename = 'clang-format-index'
-
-
-Range = collections.namedtuple('Range', 'start, count')
-
-
-def main():
-  config = load_git_config()
-
-  # In order to keep '--' yet allow options after positionals, we need to
-  # check for '--' ourselves.  (Setting nargs='*' throws away the '--', while
-  # nargs=argparse.REMAINDER disallows options after positionals.)
-  argv = sys.argv[1:]
-  try:
-idx = argv.index('--')
-  except ValueError:
-dash_dash = []
-  else:
-dash_dash = argv[idx:]
-argv = argv[:idx]
-
-  default_extensions = ','.join([
-  # From clang/lib/Frontend/FrontendOptions.cpp, all lower case
-  'c', 'h',  # C
-  'm',  # ObjC
-  'mm',  # ObjC++
-  'cc', 'cp', 'cpp', 'c++', 'cxx', 'hh', 'hpp', 'hxx',  # C++
-  'cu',  # CUDA
-  # Other languages that clang-format supports
-  'proto', 'protodevel',  # Protocol Buffers
-  'java',  # Java
-  'js',  # JavaScript
-  'ts',  # TypeScript
-  'cs',  # C Sharp
-  ])
-
-  p = argparse.ArgumentParser(
-usage=usage, formatter_class=argparse.RawDescriptionHelpFormatter,
-description=desc)
-  p.add_argument('--binary',
- default=config.get('clangformat.binary', 'clang-format'),
- help='path to clang-format'),
-  p.add_argument('--commit',
- default=config.get('clangformat.commit', 'HEAD'),
- help='default commit to use if none is specified'),
-  p.add_argument('--
diff ', action='store_true',
- help='print a 
diff  instead of applying the changes')
-  p.add_argument('--extensions',
- default=config.get('clangformat.extensions',
-default_extensions),
- help=('comma-separated list of file extensions to format, '
-   'excluding the period and case-insensitive')),
-  p.add_argument('-f', '--force', action='store_true',
- 

[clang] 313b607 - Revert "Add Debug Info Size to Symbol Status"

2020-07-24 Thread Walter Erquinigo via cfe-commits

Author: Walter Erquinigo
Date: 2020-07-24T13:28:29-07:00
New Revision: 313b60742af1f567ef7d8e26eb5b1015a7b5c78f

URL: 
https://github.com/llvm/llvm-project/commit/313b60742af1f567ef7d8e26eb5b1015a7b5c78f
DIFF: 
https://github.com/llvm/llvm-project/commit/313b60742af1f567ef7d8e26eb5b1015a7b5c78f.diff

LOG: Revert "Add Debug Info Size to Symbol Status"

This reverts commit 986e3af53bfe591e88a1ae4f82ea1cc0a15819a3.

It incorrectly deleted clang/tools/clang-format/git-clang-format

Added: 


Modified: 
clang/tools/clang-format/git-clang-format
lldb/packages/Python/lldbsuite/test/tools/lldb-vscode/lldbvscode_testcase.py
lldb/test/API/tools/lldb-vscode/module/Makefile
lldb/test/API/tools/lldb-vscode/module/TestVSCode_module.py
lldb/tools/lldb-vscode/JSONUtils.cpp

Removed: 




diff  --git a/clang/tools/clang-format/git-clang-format 
b/clang/tools/clang-format/git-clang-format
index e69de29bb2d1..f3cd585e7f4a 100755
--- a/clang/tools/clang-format/git-clang-format
+++ b/clang/tools/clang-format/git-clang-format
@@ -0,0 +1,585 @@
+#!/usr/bin/env python
+#
+#===- git-clang-format - ClangFormat Git Integration -*- python 
-*--===#
+#
+# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+# See https://llvm.org/LICENSE.txt for license information.
+# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+#
+#======#
+
+r"""
+clang-format git integration
+
+
+This file provides a clang-format integration for git. Put it somewhere in your
+path and ensure that it is executable. Then, "git clang-format" will invoke
+clang-format on the changes in current files or a specific commit.
+
+For further details, run:
+git clang-format -h
+
+Requires Python 2.7 or Python 3
+"""
+
+from __future__ import absolute_import, division, print_function
+import argparse
+import collections
+import contextlib
+import errno
+import os
+import re
+import subprocess
+import sys
+
+usage = 'git clang-format [OPTIONS] [] [] [--] [...]'
+
+desc = '''
+If zero or one commits are given, run clang-format on all lines that 
diff er
+between the working directory and , which defaults to HEAD.  Changes 
are
+only applied to the working directory.
+
+If two commits are given (requires --
diff ), run clang-format on all lines in the
+second  that 
diff er from the first .
+
+The following git-config settings set the default of the corresponding option:
+  clangFormat.binary
+  clangFormat.commit
+  clangFormat.extensions
+  clangFormat.style
+'''
+
+# Name of the temporary index file in which save the output of clang-format.
+# This file is created within the .git directory.
+temp_index_basename = 'clang-format-index'
+
+
+Range = collections.namedtuple('Range', 'start, count')
+
+
+def main():
+  config = load_git_config()
+
+  # In order to keep '--' yet allow options after positionals, we need to
+  # check for '--' ourselves.  (Setting nargs='*' throws away the '--', while
+  # nargs=argparse.REMAINDER disallows options after positionals.)
+  argv = sys.argv[1:]
+  try:
+idx = argv.index('--')
+  except ValueError:
+dash_dash = []
+  else:
+dash_dash = argv[idx:]
+argv = argv[:idx]
+
+  default_extensions = ','.join([
+  # From clang/lib/Frontend/FrontendOptions.cpp, all lower case
+  'c', 'h',  # C
+  'm',  # ObjC
+  'mm',  # ObjC++
+  'cc', 'cp', 'cpp', 'c++', 'cxx', 'hh', 'hpp', 'hxx',  # C++
+  'cu',  # CUDA
+  # Other languages that clang-format supports
+  'proto', 'protodevel',  # Protocol Buffers
+  'java',  # Java
+  'js',  # JavaScript
+  'ts',  # TypeScript
+  'cs',  # C Sharp
+  ])
+
+  p = argparse.ArgumentParser(
+usage=usage, formatter_class=argparse.RawDescriptionHelpFormatter,
+description=desc)
+  p.add_argument('--binary',
+ default=config.get('clangformat.binary', 'clang-format'),
+ help='path to clang-format'),
+  p.add_argument('--commit',
+ default=config.get('clangformat.commit', 'HEAD'),
+ help='default commit to use if none is specified'),
+  p.add_argument('--
diff ', action='store_true',
+ help='print a 
diff  instead of applying the changes')
+  p.add_argument('--extensions',
+ default=config.get('clangformat.extensions',
+default_extensions),
+ help=('comma-separated list of file extensions to format, '
+   'excluding the period and case-insensitive')),
+  p.add_argument('-f', '--force', action='store_true',
+ help='allow changes to unstaged files')
+  p.add_argument('-p', '--patch', action='store_true',
+ help='select hunks interactively')
+  p.add_argument('-q', '--quiet', action='count', default=0,
+   

[flang] [compiler-rt] [lldb] [lld] [libcxx] [llvm] [mlir] [libcxxabi] [clang] [libunwind] [libc] [clang-tools-extra] [lldb][test] Add the ability to extract the variable value out of the summary. (PR

2023-11-17 Thread Walter Erquinigo via cfe-commits

https://github.com/walter-erquinigo approved this pull request.

Thank you!

https://github.com/llvm/llvm-project/pull/72631
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


[llvm] [libcxxabi] [libcxx] [clang-tools-extra] [lldb] [mlir] [libc] [clang] [lld] [flang] [compiler-rt] [libunwind] [lldb][test] Add the ability to extract the variable value out of the summary. (PR

2023-11-17 Thread Walter Erquinigo via cfe-commits

https://github.com/walter-erquinigo closed 
https://github.com/llvm/llvm-project/pull/72631
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits