Наша сборка Qt VS Tools
giy
2022-09-02 ca47896204482bf4a6979e3838bf7f09f61cebeb
QtVsTools.Core/QMakeQuery.cs
@@ -26,18 +26,15 @@
**
****************************************************************************/
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading;
using QtVsTools.SyntaxAnalysis;
using Microsoft.VisualStudio.Shell;
namespace QtVsTools.Core
{
    using static RegExpr;
    using static SyntaxAnalysis.RegExpr;
    public class QMakeQuery : QMake
    {
@@ -58,7 +55,6 @@
        public Dictionary<string, string> QueryAllValues()
        {
            string result = string.Empty;
            stdOutput = new StringBuilder();
            Query = " ";
@@ -78,16 +74,20 @@
        {
            get
            {
                string value = string.Empty;
                if (Properties.TryGetValue(name, out value))
                if (Properties.TryGetValue(name, out string value))
                    return value;
                else
                    return null;
                return null;
            }
        }
        Dictionary<string, string> _Properties;
        Dictionary<string, string> Properties => _Properties ?? (_Properties = QueryAllValues());
        Dictionary<string, string> Properties
        {
            get
            {
                return _Properties ?? (_Properties = QueryAllValues());
            }
        }
        Parser _PropertyParser;
        Parser PropertyParser